peterxcli opened a new pull request, #25382: URL: https://github.com/apache/datafusion/pull/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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
