You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Alexander Fedulov (Jira)" <ji...@apache.org> on 2025/01/13 15:11:00 UTC

[jira] [Commented] (FLINK-35721) I found out that in the Flink SQL documentation it says that Double type cannot be converted to Boolean type, but in reality, it can.

    [ https://issues.apache.org/jira/browse/FLINK-35721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17912564#comment-17912564 ] 

Alexander Fedulov commented on FLINK-35721:
-------------------------------------------

Merged:
 * master (2.0): [https://github.com/apache/flink/commit/cb030c2de3421284a9d36c7b954e114c1a64b560]
 * 1.19: [https://github.com/apache/flink/commit/1908c7789c75b56232ab1a42a31a04975ae79236]
 * 1.20: [https://github.com/apache/flink/commit/d9bfa6b61fdb6afd9dadc6b819f88e6f71969a9c] 

> I found out that in the Flink SQL documentation it says that Double type cannot be converted to Boolean type, but in reality, it can.
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-35721
>                 URL: https://issues.apache.org/jira/browse/FLINK-35721
>             Project: Flink
>          Issue Type: Bug
>          Components: Documentation, Table SQL / Planner
>    Affects Versions: 1.19.1
>            Reporter: jinzhuguang
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 2.0.0, 1.19.2, 1.20.1
>
>         Attachments: image-2024-06-28-16-57-54-354.png
>
>
> I found out that in the Flink SQL documentation it says that Double type cannot be converted to Boolean type, but in reality, it can.
> Ralated code : org.apache.flink.table.planner.functions.casting.NumericToBooleanCastRule#generateExpression
> Ralated document url : [https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/types/]
> !image-2024-06-28-16-57-54-354.png|width=378,height=342!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)