mihaibudiu opened a new pull request, #5045:
URL: https://github.com/apache/calcite/pull/5045

   [CALCITE-7619](https://issues.apache.org/jira/browse/CALCITE-7619)
   
   ## Changes Proposed
   
   A cast that drops nullability does not preserve semantics and types, so 
rather than inserting it return the unsimplified expression.
   
   This bug was actually masked by another optimization which drops such casts 
from filters.
   
   Fortunately only a couple of plans change, and the original plans were both 
actually buggy and would crash at runtime if the runtime did strict checks for 
NULL being assigned to non-null values.


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