mslapek commented on issue #5681:
URL: 
https://github.com/apache/arrow-datafusion/issues/5681#issuecomment-1483780310

   This is a very important feature. 🪜
   
   Moving `TypeCoercion` into pre-optimizer phase would allow to avoid 
"Mismatch between schema and batches", like #5733 (and possibly #5695).
   
   `TypeCoercion` being **an optimizer** is a broken concept - because 
optimizers cannot change the final schema of the logical plan.
   
   What is more, `Expr::Case` has an assumption, that all inputs are 
**already** coerced.


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