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

statistics: uniform the calculation of pseudo stats. #6483

Merged
merged 7 commits into from
May 9, 2018

Conversation

winoros
Copy link
Member

@winoros winoros commented May 7, 2018

To make Selectivity not a method of statistics.Table. It's inner logic should not rely on Table.Pseudo.

@winoros
Copy link
Member Author

winoros commented May 7, 2018

/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
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

@alivxxx alivxxx left a comment

Choose a reason for hiding this comment

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

LGTM

@shenli
Copy link
Member

shenli commented May 7, 2018

/run-all-tests tidb-test=pr/517

@jackysp
Copy link
Member

jackysp commented May 8, 2018

CI failed @winoros .

@winoros
Copy link
Member Author

winoros commented May 8, 2018

/run-common-test tidb-test=pr/517
/run-integration-common-test tidb-test=pr/517
/run-unit-test

@winoros
Copy link
Member Author

winoros commented May 8, 2018

/run-unit-test

@zimulala zimulala added the status/LGT1 Indicates that a PR has LGTM 1. label May 8, 2018
@winoros
Copy link
Member Author

winoros commented May 8, 2018

/run-all-tests tidb-test=pr/517

Copy link
Contributor

@zimulala zimulala left a comment

Choose a reason for hiding this comment

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

LGTM

@zimulala zimulala added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels May 8, 2018
@zz-jason zz-jason merged commit 7ea70d5 into pingcap:master May 9, 2018
@winoros winoros deleted the pseudo branch May 15, 2018 07:55
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.

7 participants