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 13:59:00 UTC

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

Volodymyr Vysotskyi created DRILL-6401:
------------------------------------------

             Summary: 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


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)