-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
planner: zero estimation result if all values are in TopN #47400
Comments
the related code about this is as follows
in first case, since topN is collected, and it is overlapped with the NDV indication in Histogram, so the computation here is meaningless, leading in the second case, since topN is not collected, |
/report customer |
Enhancement
After v6.5, in the case above, the estimation result for
a=2
is zero, which seems dangerous.If no
TopN
, it'll be1
:Should we avoid using
0
in this case (this value is not in TopN and there is no Histogram)?The text was updated successfully, but these errors were encountered: