You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yunhong Zheng (Jira)" <ji...@apache.org> on 2024/02/06 03:19:00 UTC

[jira] [Commented] (FLINK-34376) FLINK SQL SUM() causes a precision error

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

Yunhong Zheng commented on FLINK-34376:
---------------------------------------

Hi, [~liufangliang] . Can you provide your SQL pattern? This would allow for a clearer description of the issue.

> FLINK SQL SUM() causes a precision error
> ----------------------------------------
>
>                 Key: FLINK-34376
>                 URL: https://issues.apache.org/jira/browse/FLINK-34376
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Runtime
>    Affects Versions: 1.14.3, 1.18.1
>            Reporter: Fangliang Liu
>            Priority: Major
>         Attachments: image-2024-02-06-11-15-02-669.png, image-2024-02-06-11-17-03-399.png
>
>
> {code:java}
> select cast(sum(CAST(9.000000000000000011 AS DECIMAL(38,18)) *10 ) as STRING) {code}
> the result in 1.14.3 and master branch isĀ 
> !image-2024-02-06-11-15-02-669.png!



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