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)

Reply via email to