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] [Commented] (DRILL-937) Boolean operators should use short-circuit evaluation.
Date Mon, 09 Jun 2014 19:33:01 GMT

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

Jinfeng Ni commented on DRILL-937:

The fix is to handle boolean operator differently from other normal function/operator in EvalVisitor.
In run-time code generation phase, Drill need generate the code to support short-circuit for
boolean operator. 

> Boolean operators should use short-circuit evaluation. 
> -------------------------------------------------------
>                 Key: DRILL-937
>                 URL: https://issues.apache.org/jira/browse/DRILL-937
>             Project: Apache Drill
>          Issue Type: Improvement
>            Reporter: Jinfeng Ni
> When Drill evaluate a boolean operator ('and', 'or'), it should use the short-circuit
evaluation approach : when one branch is sufficient enough to decide the final result, Drill
should stop evaluating the other branches.  This should help improve the performance of filter
operator, when it contains a complex boolean operator.

This message was sent by Atlassian JIRA

View raw message