You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Sean Hsuan-Yi Chu (JIRA)" <ji...@apache.org> on 2015/02/01 05:22:34 UTC

[jira] [Commented] (DRILL-2135) "CAST( NULL AS SMALLINT ) AS ..." fails with "Unable to convert ... null ... to ... constant expr."

    [ https://issues.apache.org/jira/browse/DRILL-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14300070#comment-14300070 ] 

Sean Hsuan-Yi Chu commented on DRILL-2135:
------------------------------------------

SMALLINT would not be supported until GA. 

I already did a patch to give a more appropriate message to inform users.

> "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
>            Reporter: Daniel Barclay (Drill/MapR)
>
> 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)