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 d9a9321
Browse filesBrowse the repository at this point in the historyBrowse files
fix: preserve literal metadata and destructure leaf and unary proto hooks (#25382)
## Which issue does this PR close?
Closes#24613. Literal field metadata is lost when physical expressions
are serialized.
## Rationale for this change
Losing this metadata can strip Arrow extension types and custom metadata
from projected columns.
## What changes are included in this PR?
Use exhaustive destructuring in all seven leaf and unary expression
encoders and decoders. Add a literal protobuf message that carries
metadata and regenerate the Rust and JSON bindings.
## What is the testing strategy for this PR?
A projection round-trip test covers null and non-null literals through
protobuf and JSON and was verified to fail before the fix. Existing
tests cover plain literals, and a new test rejects messages missing a
value. The extended workspace tests and all-feature Clippy pass.
## Are there any user-facing changes?
Literal metadata survives physical plan serialization. Literals with
metadata use a new protobuf variant that requires an updated reader.
0 commit comments