afedulov commented on PR #25938:
URL: https://github.com/apache/flink/pull/25938#issuecomment-2585894708
Just to clarify - this PR is solely about casting between to BOOLEAN. All of
the below expressions work:
```sql
-- Casting NaN as BOOLEAN
SELECT CAST(SQRT(-1) AS BOOLEAN) as nan;
-> TRUE
-- Casting Infinity, -Inifinity as BOOLEAN
SELECT CAST(power(0, -1)AS BOOLEAN) as infinity_to_boolean,
CAST(-power(0, -1)AS BOOLEAN) as neg_infinity_to_boolean;
-> TRUE, TRUE
```
--
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]