drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jinfeng Ni (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-1299) Short circuit CASE statement evaluation
Date Fri, 29 Aug 2014 22:07:52 GMT

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

Jinfeng Ni updated DRILL-1299:
------------------------------

    Attachment: 0001-DRILL-1299-Enable-short-circuit-evaluation-for-case-.patch

> Short circuit CASE statement evaluation
> ---------------------------------------
>
>                 Key: DRILL-1299
>                 URL: https://issues.apache.org/jira/browse/DRILL-1299
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Execution - Codegen
>            Reporter: Jason Altekruse
>            Assignee: Jinfeng Ni
>             Fix For: 0.5.0
>
>         Attachments: 0001-DRILL-1299-Enable-short-circuit-evaluation-for-case-.patch
>
>
> Case statements currently are transformed into generated code that contains blocks for
the conditional, when block and else block. Regardless of the result of the conditional, both
of the blocks are evaluated and the correct result is taken. This currently removes the capability
for case statements to be used to avoid exceptions, such as checking for an empty string before
calling a function on it.



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

Mime
View raw message