drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Altekruse (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-1299) Short circuit CASE statement evaluation
Date Thu, 14 Aug 2014 02:44:12 GMT

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

Jason Altekruse updated DRILL-1299:

    Component/s: Execution - Codegen

> 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
>             Fix For: 0.5.0
> 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

View raw message