curtisleefulton opened a new issue, #9010:
URL: https://github.com/apache/arrow-datafusion/issues/9010

   ### Describe the bug
   
   In datafusion/optimizer/src/optimizer.rs:271 when calling 
`assert_schema_is_the_same` prev_plan / new_plan are backwards. This causes an 
incorrect / confusing assert error, indicating the optimized plan is actually 
the original plan.
   
   ### To Reproduce
   
   Any optimization error that produces a schema change will reproduce this bug.
   
   In this particular case, the root cause of the schema change dropping 
timezone metadata for timestamps somewhere in  the Optimizer rule 
`simplify_expressions`. Fixing this bug will help find the root cause.
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


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

Reply via email to