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

dylanhz commented on FLINK-38108:
---------------------------------

[~fpaul] I'm working on a fix for this. Could you please assign it to me? 
Thanks.

> Incorrect conversion from Java BigDecimal to SQL DECIMAL
> --------------------------------------------------------
>
>                 Key: FLINK-38108
>                 URL: https://issues.apache.org/jira/browse/FLINK-38108
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / API
>            Reporter: dylanhz
>            Priority: Major
>
> {code:java}
> // Table API
> tableEnv.fromValues(new BigDecimal("0.011")).printSchema();
> > DECIMAL(5, 3) NOT NULL
> // SQL
> tableEnv.executeSql("SELECT TYPEOF(0.011)").print();
> > DECIMAL(4, 3) NOT NULL
> {code}
> This issue is caused by incorrect precision conversion in the Table API.
> By the way, this issue has been discussed before, but the actions taken did 
> not resolve the problem. 
> [FLINK-36378|https://issues.apache.org/jira/browse/FLINK-36378]



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

Reply via email to