You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (JIRA)" <ji...@apache.org> on 2019/08/08 10:31:00 UTC

[jira] [Commented] (FLINK-13651) table api not support cast to decimal with precision and scale

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

Jark Wu commented on FLINK-13651:
---------------------------------

I think this can be fixed only in 1.10. 

> table api not support cast to decimal with precision and scale
> --------------------------------------------------------------
>
>                 Key: FLINK-13651
>                 URL: https://issues.apache.org/jira/browse/FLINK-13651
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>    Affects Versions: 1.9.0, 1.10.0
>            Reporter: Zhenghua Gao
>            Priority: Major
>
> could reproduce in  ScalarFunctionsTest:
> `testAllApis(
>    'f31.cast(DataTypes.DECIMAL(38, 18)).truncate(2),
>    "f31.cast(DECIMAL(38, 18)).truncate(2)",
>    "truncate(cast(f31 as decimal(38, 18)), 2)",
>    "-0.12")`
>  
> A possible reason is LookupCallResolver treat decimal(38, 18) as a function call.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)