Commit 7ca32c6
docs: unpack the dense passages in the bundle guide
Follow-up to the audience pass, all prose.
The paragraph after the two-hook example referred to the hooks as "the first"
and "the second", making the reader count back to the code block, and gave its
three cases three different shapes. It now names the hooks and groups by where
a component goes: codecs and functions in one hook, the planner in the other.
"Declare functions rather than registering them yourself inside the hook" named
no call, so the practice it warns against was never shown. It now says
`register_udf` on the `ctx` you were handed, and contrasts when each is
written. Its reason is also corrected: a registration made in the hook was said
to be "too early to see the other bundles' codecs", which is true of a table
provider and false of a function — the three function getters take no argument
at all, so nothing binds them to a codec chain. For functions the reason is the
transaction alone, which is what it now says.
Table providers are dropped from that paragraph rather than given the
codec-visibility caveat they deserve, since the follow-on PR covers them.
"Two bundles claiming one name" led with a gerund subject, carried its
rationale on a semicolon, and split two qualifications of equal weight across a
trailing clause and a paragraph. It now states the rule, shows the error,
explains the codec contrast on its own, and lists the two exceptions. One
example name runs through all three.
The error text quoted in both guides gains the `named` that the message
actually contains.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent d47055e commit 7ca32c6
2 files changed
Lines changed: 32 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
| 297 | + | |
| 298 | + | |
302 | 299 | | |
303 | | - | |
304 | | - | |
305 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
306 | 316 | | |
307 | | - | |
308 | | - | |
309 | | - | |
| 317 | + | |
| 318 | + | |
310 | 319 | | |
311 | 320 | | |
312 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
0 commit comments