[
https://issues.apache.org/jira/browse/FLINK-24318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
godfrey he closed FLINK-24318.
------------------------------
Fix Version/s: 1.13.4
1.14.1
Resolution: Fixed
Fixed in 1.15.0: 32f7cc9e34be67eaf1b746697f2fabefcd5f46c5
Fixed in 1.14.1: 309dc0479172b979ee3c951893a04304b5416a08
Fixed in 1.13.4: 1d92c9e36ff87240a49d32d7a50c11e95251c3db
> Casting a number to boolean has different results between 'select' fields and
> 'where' condition
> -----------------------------------------------------------------------------------------------
>
> Key: FLINK-24318
> URL: https://issues.apache.org/jira/browse/FLINK-24318
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Planner
> Reporter: xuyangzhong
> Assignee: xuyangzhong
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.15.0, 1.14.1, 1.13.4
>
>
> The same cast in the following two sql:
> {code:java}
> // SQL 1
> SELECT cast(0.1 as boolean)
> // SQL 2
> SELECT * from test2 where cast(0.1 as boolean)
> {code}
> has different results.
> The cast result in SQL 1 is true and the cast in SQL 2 is false.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)