This is an automated email from the ASF dual-hosted git repository. wzhou pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/impala.git
commit 98430c0fcc568dfc9189cab436f0afb357d067f0 Author: Michael Smith <[email protected]> AuthorDate: Tue Apr 25 08:59:08 2023 -0700 IMPALA-7942: Preserve CompoundPredicate API Restore old computeSelectivity function signature and mark deprecated to preserve Java API. Change-Id: Ia1827395865143e09672ea761b2ce01987f6c3ab Reviewed-on: http://gerrit.cloudera.org:8080/19805 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- fe/src/main/java/org/apache/impala/analysis/CompoundPredicate.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fe/src/main/java/org/apache/impala/analysis/CompoundPredicate.java b/fe/src/main/java/org/apache/impala/analysis/CompoundPredicate.java index 0dee5f71e..3e3715be7 100644 --- a/fe/src/main/java/org/apache/impala/analysis/CompoundPredicate.java +++ b/fe/src/main/java/org/apache/impala/analysis/CompoundPredicate.java @@ -158,7 +158,11 @@ public class CompoundPredicate extends Predicate { return; } } + computeSelectivity(); + } + @Deprecated + protected void computeSelectivity() { if (!getChild(0).hasSelectivity() || (children_.size() == 2 && !getChild(1).hasSelectivity())) { // Give up if one of our children has an unknown selectivity.
