Marcel Kornacker has posted comments on this change. Change subject: IMPALA-2805: Order conjuncts based on selectivity and cost ......................................................................
Patch Set 17: Code-Review+2 (4 comments) http://gerrit.cloudera.org:8080/#/c/2598/17/fe/src/main/java/com/cloudera/impala/analysis/BinaryPredicate.java File fe/src/main/java/com/cloudera/impala/analysis/BinaryPredicate.java: Line 259: evalCost_ = getChildCosts() + (float) (getAvgStringLength(getChild(0)) + format as evalcost = getchildcosts() + <4 spaces>(getavg... + getavg...) * binary_predicate_cost to make parentheses more obvious http://gerrit.cloudera.org:8080/#/c/2598/17/fe/src/main/java/com/cloudera/impala/analysis/LikePredicate.java File fe/src/main/java/com/cloudera/impala/analysis/LikePredicate.java: Line 149: evalCost_ = getChildCosts() + (float) (getAvgStringLength(getChild(0)) + same here http://gerrit.cloudera.org:8080/#/c/2598/17/testdata/workloads/functional-planner/queries/PlannerTest/conjunct-ordering.test File testdata/workloads/functional-planner/queries/PlannerTest/conjunct-ordering.test: Line 1: # Check that a numeric comparison costs less than checking a bool value. the other way around Line 31: # CHeck that a simple numeric comparison costs less than one with arithmetic. Check -- To view, visit http://gerrit.cloudera.org:8080/2598 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I02279a26fbc6308ac5eb819d78345fc010469034 Gerrit-PatchSet: 17 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Thomas Tauber-Marshall <[email protected]> Gerrit-Reviewer: Alex Behm <[email protected]> Gerrit-Reviewer: Henry Robinson <[email protected]> Gerrit-Reviewer: Marcel Kornacker <[email protected]> Gerrit-Reviewer: Matthew Jacobs <[email protected]> Gerrit-Reviewer: Mostafa Mokhtar <[email protected]> Gerrit-Reviewer: Thomas Tauber-Marshall <[email protected]> Gerrit-HasComments: Yes
