findepi commented on issue #14408:
URL: https://github.com/apache/datafusion/issues/14408#issuecomment-2629542547

   > Physical input schema should be the same as the one converted from logical 
input schema. 
   > Differences:
   >  - field nullability at index 7 [#98]: (physical) false vs (logical) true.
   
   I think this should be allowed, especially since we run further 
optimizations on the physical plans.
   For example a query
   
   ```
   SELECT nullable_value FROM ...
   UNOIN ALL
   SELECT non_null_value FROM ...
   ```
   
   may have it's first union branch eventually eliminated at some point, and 
this may happen on the physical stage. As a result, nullable field becomes 
non-null.
   
   


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to