xuyangzhong opened a new pull request #2555:
URL: https://github.com/apache/calcite/pull/2555


   According to the discussion in [calcite-4777], casting from decimal to 
boolean is invalid, and an exception like "Cast function cannot convert value 
of type DECIMAL(2,1) to type BOOLEAN" will be thrown in the period of 
validating. 
   This pr changes:
   
   - remove the coerce rule from decimal to boolean, which will lead to throw a 
conversion exception and let users know this is an invalid conversion.
   - add some test cases in SqlOperatorBaseTest.
   - change the reference.md to say this invalid conversion


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