[
https://issues.apache.org/jira/browse/DRILL-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14573723#comment-14573723
]
Daniel Barclay (Drill) commented on DRILL-2135:
-----------------------------------------------
See "DRILL-2135" marks in code (DatabaseMetaDataGetColumnsTest).
> "CAST( NULL AS SMALLINT ) AS ..." fails with "Unable to convert ... null ...
> to ... constant expr."
> ----------------------------------------------------------------------------------------------------
>
> Key: DRILL-2135
> URL: https://issues.apache.org/jira/browse/DRILL-2135
> Project: Apache Drill
> Issue Type: Bug
> Components: Execution - Data Types
> Reporter: Daniel Barclay (Drill)
> Assignee: Parth Chandra
> Fix For: Future
>
>
> A query starting with
> SELECT CAST( NULL AS SMALLINT ) AS ...
> fails with "UnsupportedOperationException: Unable to convert the value of
> null and type SMALLINT to a Drill constant expression."
> (A similar query with "SMALLINT" replaced with "INTEGER" works.)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)