You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Volodymyr Vysotskyi (JIRA)" <ji...@apache.org> on 2018/05/10 14:12:00 UTC

[jira] [Updated] (DRILL-6401) Precision for decimal data types may be lost for the case when cast with literal is used

     [ https://issues.apache.org/jira/browse/DRILL-6401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Volodymyr Vysotskyi updated DRILL-6401:
---------------------------------------
    Fix Version/s: 1.14.0

> Precision for decimal data types may be lost for the case when cast with literal is used
> ----------------------------------------------------------------------------------------
>
>                 Key: DRILL-6401
>                 URL: https://issues.apache.org/jira/browse/DRILL-6401
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Volodymyr Vysotskyi
>            Assignee: Volodymyr Vysotskyi
>            Priority: Major
>             Fix For: 1.14.0
>
>
> For the case when cast with decimal literal is used and literal has less precision than specified in the casting type:
> {code:sql}
> SELECT cast('999.99' as decimal(9, 4)) decimal_9_4
> {code}
> the precision in column metadata is incorrect: 7, but should be 9.
> Test which has the similar check {{PreparedStatementTest.testQueryMetadataInPreparedStatement}} is failed when it is ran separately. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)