afedulov opened a new pull request, #25938:
URL: https://github.com/apache/flink/pull/25938
Minor documentation fix.
Verified by:
```sql
-- Casting DECIMAL to BOOLEAN
SELECT CAST(CAST(0.0 AS DECIMAL) AS BOOLEAN) AS decimal_zero,
CAST(CAST(-1.0 AS DECIMAL) AS BOOLEAN) AS decimal_negative,
CAST(CAST(1.0 AS DECIMAL) AS BOOLEAN) AS decimal_positive;
-> FALSE, TRUE, TRUE
-- Casting FLOAT to BOOLEAN
SELECT CAST(CAST(0.0 AS FLOAT) AS BOOLEAN) AS float_zero,
CAST(CAST(-3.14 AS FLOAT) AS BOOLEAN) AS float_negative,
CAST(CAST(3.14 AS FLOAT) AS BOOLEAN) AS float_positive;
-> FALSE, TRUE, TRUE
-- Casting DOUBLE to BOOLEAN
SELECT CAST(CAST(0.0 AS DOUBLE) AS BOOLEAN) AS double_zero,
CAST(CAST(-3.14 AS DOUBLE) AS BOOLEAN) AS double_negative,
CAST(CAST(3.14 AS DOUBLE) AS BOOLEAN) AS double_positive;
-> FALSE, 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]