gene-bordegaray opened a new pull request, #24670:
URL: https://github.com/apache/datafusion/pull/24670

   An identity projection can carry metadata even when its expressions match 
the input. Projection optimization currently turns:
   
   `value {logical_type=event}` into `renamed {}`
   
   Dropping the metadata changes the output schema and can cause schema 
mismatch errors. The fix removes identity projections only when their schemas 
match and copies the outer schema metadata when collapsing projection chains.
   
   Tests: `cargo test -p datafusion-physical-plan projection::tests` and `cargo 
test -p datafusion-physical-optimizer projection_pushdown::test`.


-- 
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]

Reply via email to