[ 
https://issues.apache.org/jira/browse/DRILL-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aditya Kishore updated DRILL-1138:
----------------------------------

    Attachment: DRILL-1138-Explicit-casting-to-boolean-fails.patch

Updated patch with minor change (use 
org.apache.drill.exec.util.ByteBufUtil.createBuffer instead of direct netty 
method).

> Explicit casting to boolean fails
> ---------------------------------
>
>                 Key: DRILL-1138
>                 URL: https://issues.apache.org/jira/browse/DRILL-1138
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Data Types
>    Affects Versions: 1.0.0-BETA1
>            Reporter: Ramana Inukonda Nagaraj
>            Assignee: DrillCommitter
>         Attachments: DRILL-1138-Explicit-casting-to-boolean-fails.patch, 
> DRILL-1138-Explicit-casting-to-boolean-fails.patch
>
>
> 0: jdbc:drill:schema=dfs.TpcHMulti> select cast(C_CUSTKEY as boolean) as 
> booleantest from customer limit 1;
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while 
> running query.[error_id: "c20bd69f-bb5c-443e-a01b-8571b4c86490"
> endpoint {
>   address: "drillats1.qa.lab"
>   user_port: 31010
>   control_port: 31011
>   data_port: 31012
> }
> error_type: 0
> message: "Failure while parsing sql. < IllegalArgumentException:[ No enum 
> constant org.apache.drill.common.types.TypeProtos.MinorType.BOOLEAN ]"
> ]
> Error: exception while executing query (state=,code=0)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to