Skip to content
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

stats: fix row count estimation for null #6203

Merged
merged 5 commits into from
Apr 4, 2018
Merged

Conversation

alivxxx
Copy link
Contributor

@alivxxx alivxxx commented Apr 2, 2018

When building columns stats, null values will only be recorded in NullCount, so it will be wrong to use the histogram or CM sketch to estimate. For index stats, we should not skip the null values when building the scan range.
PTAL @coocood @winoros @zz-jason

Copy link
Member

@winoros winoros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@winoros
Copy link
Member

winoros commented Apr 2, 2018

/run-all-tests

zz-jason
zz-jason previously approved these changes Apr 2, 2018
Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zz-jason
Copy link
Member

zz-jason commented Apr 2, 2018

@lamxTyler sqllogic-test failed

@shenli shenli added the DNM label Apr 2, 2018
@shenli
Copy link
Member

shenli commented Apr 2, 2018

Please fix the CI.

@winoros
Copy link
Member

winoros commented Apr 3, 2018

It seems that all plans' is MaxFloat64 so convert2PhysicalPlan returns `nil.

@alivxxx
Copy link
Contributor Author

alivxxx commented Apr 3, 2018

/run-all-tests

@alivxxx
Copy link
Contributor Author

alivxxx commented Apr 3, 2018

PTAL @zz-jason @winoros

Copy link
Member

@winoros winoros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zz-jason zz-jason merged commit 056161d into pingcap:master Apr 4, 2018
@zz-jason zz-jason added the status/LGT2 Indicates that a PR has LGTM 2. label Apr 4, 2018
@alivxxx alivxxx deleted the null branch April 4, 2018 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants