You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Jacques Nadeau (JIRA)" <ji...@apache.org> on 2014/03/24 16:50:55 UTC

[jira] [Assigned] (DRILL-403) Add support for CASE statement

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

Jacques Nadeau reassigned DRILL-403:
------------------------------------

    Assignee: Venki Korukanti

This is also required for TPC-H 12

> Add support for CASE statement
> ------------------------------
>
>                 Key: DRILL-403
>                 URL: https://issues.apache.org/jira/browse/DRILL-403
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Aman Sinha
>            Assignee: Venki Korukanti
>
> Drill currently throws an error for CASE statements.  This issue is to track adding support for such statements. 
> select case when N_NATIONKEY = 0 then 1 end from dfs.`/tmp/parquet/nation.parquet` ;
> Exception in thread "WorkManager-2" java.lang.AssertionError: todo: implement syntax SPECIAL(CASE(=(CAST($0):INTEGER NOT NULL, 0), 1, null))
> 	at org.apache.drill.exec.planner.logical.DrillOptiq$RexToDrill.visitCall(DrillOptiq.java:113)
> 	at org.apache.drill.exec.planner.logical.DrillOptiq$RexToDrill.visitCall(DrillOptiq.java:63)



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