You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Jinfeng Ni (JIRA)" <ji...@apache.org> on 2014/06/09 21:33:01 UTC

[jira] [Commented] (DRILL-937) Boolean operators should use short-circuit evaluation.

    [ 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
(v6.2#6252)