[ https://issues.apache.org/jira/browse/FLINK-24318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17578884#comment-17578884 ]
Yuan Kui commented on FLINK-24318: ---------------------------------- In 1.13.4, correct commit is: ea53e4a6cd1d39592cf3a6ae911fed332234d00e > 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: xuyang > Assignee: xuyang > Priority: Minor > Labels: pull-request-available > Fix For: 1.13.6, 1.14.3, 1.15.0 > > > 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.20.10#820010)