Repository navigation
Commit ad37eea
feat: port ScalarFunctionExpr to try_to_proto / try_from_proto
Rides the standard hooks like every other migrated expression: the
embedded ScalarUDF serializes through the encode ctx's typed
encode_function capability and resolves on decode via decode_function
(payload-first through the extension codec, then the task context's
function registry, then the codec with an empty payload — the same lookup
order as the old inline arm), with session configuration from
ctx.config_options(). The ScalarFunctionExpr downcast arm in to_proto.rs
is deleted and the ExprType::ScalarUdf decode arm becomes the standard
one-line dispatch, so the roundtrip suite can only pass through the new
hooks. Wire format is byte-for-byte unchanged.
Closes apache#22430. Part of apache#22418.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018MmNo1SfPHXZNaMW26KmaG1 parent 2e306b4 commit ad37eea
3 files changed
Lines changed: 583 additions & 54 deletions
File tree
- datafusion
- physical-expr/src
- proto/src/physical_plan
0 commit comments