-
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
Tracking issue for analyze predicate/user-specified columns #27828
Comments
/sig planner |
/assign |
Did some research and find in MySQL, a predicate is a Boolean expression that evaluates to TRUE, FALSE, or UNKNOWN. Is this an official terminology and added to docs? |
The design doc in #28878 has description on |
Proposal
related issue: #27358
design doc: #28878
Currently
ANALYZ TABLE
collects the statistics for all columns. However, only some columns' statistics are used in making query plans while others are not used. If some column occurs in filter conditions such as where/join conditions, its statistics will be used for calculating selectivity. We call such column predicate column. If we only collect the statistics for the predicate columns, the cost ofANALYZE TABLE
can be reduced.Hence we want to do the following things:
Development Task
The text was updated successfully, but these errors were encountered: