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

   Previously, `CAST(TRUE as INTEGER)` was throwing a `NumberFormatException`. 
   This PR fixes the cast simplification for boolean literals.
   
   Note: No additional tests were added because the test 
`testSimplifyCastLiteral` 
https://github.com/apache/calcite/blob/main/core/src/test/java/org/apache/calcite/rex/RexProgramTest.java#L2300
 loops through the `BOOLEAN` type and checks that it now can be casted into 
`INTEGER`, `BIGINT`, `SMALLINT`, `TINYINT`
   


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