You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/01/17 00:37:45 UTC
[GitHub] [druid] gianm commented on a change in pull request #9200: Optimize
JoinCondition matching
gianm commented on a change in pull request #9200: Optimize JoinCondition matching
URL: https://github.com/apache/druid/pull/9200#discussion_r367719499
##########
File path: processing/src/main/java/org/apache/druid/segment/join/JoinConditionAnalysis.java
##########
@@ -133,26 +142,23 @@ public String getOriginalExpression()
*/
public boolean isAlwaysFalse()
{
- return nonEquiConditions.stream()
- .anyMatch(expr -> expr.isLiteral() && !expr.eval(ExprUtils.nilBindings()).asBoolean());
+ return anyFalseLiteralNonEquiConditions;
Review comment:
Why not call this `isAlwaysFalse`? (It looks like it isn't used anywhere else, and it seems to me to be easier to understand the meaning of the field if it's named after what we want it to mean.)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org