You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Benchao Li (Jira)" <ji...@apache.org> on 2020/10/25 09:39:00 UTC

[jira] [Commented] (FLINK-19796) Error results when use constant decimal array

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

Benchao Li commented on FLINK-19796:
------------------------------------

[~FrankZou] Thanks for reporting this bug, would you like to fix this?

> Error results when use constant decimal array
> ---------------------------------------------
>
>                 Key: FLINK-19796
>                 URL: https://issues.apache.org/jira/browse/FLINK-19796
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Runtime
>            Reporter: Zou
>            Priority: Major
>
> The result is wrong when use constant decimal array with different precisions.
>  Here is an example:
> {code:sql}
> create table print_sink(
> 	data array<decimal(3,2)>
> ) with (
>       'connector' = 'print'
> );
> insert into print_sink
> select array[0.12, 0.5, 0.99];
> {code}
> The result will be:
> {code:java}
> +I([0.12, 0.05])
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)