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