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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16470530#comment-16470530 ] 

ASF GitHub Bot commented on DRILL-6401:
---------------------------------------

vvysotskyi opened a new pull request #1254: DRILL-6401: Precision for decimal data types may be lost for the case…
URL: https://github.com/apache/drill/pull/1254
 
 
   … when cast with literal is used

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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)