You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 585e597
Browse filesBrowse the repository at this point in the historyBrowse files
feat: decode extension ExecutionPlans through the session registry
Wires the name-keyed registry into the central decode dispatch. The rule is the
one function decode already uses a layer down (payload -> codec; else registry
-> codec fallback):
* `plan_name` present *and* registered on the decoding session -> the plan's own
`try_from_proto`, no codec involved.
* anything else -> the `PhysicalExtensionCodec` chain, unchanged.
Existing behavior is untouched: codec-encoded plans stay anonymous on the wire
(`plan_name: None`) and take the same path they always have. When a name is
present but unregistered and the codec also fails, the error now points at the
missing registration and lists what the session does know, instead of leaving
only the codec's generic "unsupported plan".
Tests cover a session-dependent extension plan (its worker pool is rebuilt from
the decoding session, never serialized), two independent extension plans
coexisting with no `ComposedPhysicalExtensionCodec`, the registry winning over a
codec that claims every payload, and codec-encoded plans decoding as before.
Closesapache#24625.
Co-Authored-By: Claude Opus 5 <[email protected]>
0 commit comments