-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
statistics: uniform the calculation of pseudo stats. #6483
Conversation
/run-all-tests tidb-test=pr/517 |
plan/stats.go
Outdated
log "github.com/sirupsen/logrus" | ||
) | ||
|
||
// statsInfo stores the basic information of statistics for the plan's output. It is used for cost estimation. | ||
type statsInfo struct { | ||
count float64 | ||
cardinality []float64 | ||
colHist []statistics.Column |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that it is not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh it's something should be done in next pr.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests tidb-test=pr/517 |
CI failed @winoros . |
/run-common-test tidb-test=pr/517 |
/run-unit-test |
/run-all-tests tidb-test=pr/517 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
To make
Selectivity
not a method ofstatistics.Table
. It's inner logic should not rely onTable.Pseudo
.