Hello Aman Sinha, Gabor Kaszab, Abhishek Rawat, Zoltan Borok-Nagy, Impala 
Public Jenkins,

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/18543

to look at the new patch set (#2).

Change subject: IMPALA-11301: Fix extreme = and != selectivity for NDV=1
......................................................................

IMPALA-11301: Fix extreme = and != selectivity for NDV=1

The original selectivity of 1.0/ndv and 1.0 - 1.0/ndv make sense
for large NDVs, but the result is 1.0 and 0.0 in case of ndv==1,
which can lead to extremely wrong cardinality estimates.
IMPALA-7601 contains some discussion about these formulas.

Testing:
- added a regression test

Change-Id: I6b5334a8d7d6ca46a450ff98ae03e5269faaa3c6
---
M fe/src/main/java/org/apache/impala/analysis/BinaryPredicate.java
M fe/src/test/java/org/apache/impala/planner/CardinalityTest.java
2 files changed, 11 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/43/18543/2
--
To view, visit http://gerrit.cloudera.org:8080/18543
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I6b5334a8d7d6ca46a450ff98ae03e5269faaa3c6
Gerrit-Change-Number: 18543
Gerrit-PatchSet: 2
Gerrit-Owner: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Abhishek Rawat <[email protected]>
Gerrit-Reviewer: Aman Sinha <[email protected]>
Gerrit-Reviewer: Gabor Kaszab <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>

Reply via email to