You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "JiJun Tang (JIRA)" <ji...@apache.org> on 2017/04/26 01:28:04 UTC

[jira] [Commented] (FLINK-4621) Improve decimal literals of SQL API

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

JiJun Tang commented on FLINK-4621:
-----------------------------------

I think simple numbers can be coverted to Java primitives.For exmaple : -0.5 -> longval=-5,precision=1

> Improve decimal literals of SQL API
> -----------------------------------
>
>                 Key: FLINK-4621
>                 URL: https://issues.apache.org/jira/browse/FLINK-4621
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table API & SQL
>            Reporter: Timo Walther
>
> Currently, all SQL {{DECIMAL}} types are converted to BigDecimals internally. By default, the SQL parsers creates {{DECIMAL}} literals of any number e.g. {{SELECT 1.0, 12, -0.5 FROM x}}. I think it would be better if these simple numbers would be represented as Java primitives instead of objects.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)