Repository navigation
Commit d25e184
Name the codecs that actually park live objects
The durable-metadata section named `datafusion-ffi-example` and
`datafusion-ffi-query-planner-example` as the two codecs that keep a
process-local `HashMap` of live providers. The second one does not:
`grep -rn "HashMap\|OnceLock\|TOKEN"` over its `src/` is empty. It claims
`node.is::<DistributedExec>()` narrowly and writes a fixed durable
marker, which is the behaviour this section recommends. The guide was
holding up a correct codec as a counter-example.
The count was right and the attribution was wrong. Both offending codecs
are in `datafusion-ffi-example` -- the logical one for table providers
and the physical one for execution plan nodes -- so the paragraph now
names the crate once and distinguishes its two codecs. "Providers"
becomes "objects", since one of the two parks plans rather than
providers.
Also connects the broad-claim discussion 130 lines further down to the
registry it forces. The two were written as separate faults, but the
registry is downstream of the claim: a codec handed a node it cannot
inspect has nothing to write down about it, so parking the object is all
that is left. Saying so is what stops a reader treating the registry as
an independent shortcut they might take deliberately.
Deliberately minimal. Fixing the logical codec, quarantining the
`ForeignExecutionPlan` arm, and rewriting this section around the result
are tracked in #1723 -- the rewrite has to describe facts the first two
change, so patching further here would only be undone.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>1 parent e26520d commit d25e184
1 file changed
Lines changed: 17 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
0 commit comments