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

copr: the stats for normal column should be based on collation key (#8105) #8620

Merged
merged 3 commits into from
Sep 8, 2020

Conversation

winoros
Copy link
Contributor

@winoros winoros commented Sep 8, 2020

Cherry-pick #8105


What problem does this PR solve?

Issue Number: for pingcap/tidb#14689

Problem Summary:

We should use the collation key instead of its original value for a normal column to generate its statistics.

What is changed and how it works?

What's Changed:

Use the collation sort key as the sampling data.

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

Side effects

  • Performance regression
    • Consumes more CPU

Release note

  • Fix the estimation error for a non-index column with collation enabled.

…ikv#8105)

Signed-off-by: Yiding Cui <winoros@gmail.com>
Conflicts:
	Cargo.toml
	src/coprocessor/statistics/analyze.rs
@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 8, 2020
@breezewish
Copy link
Member

/run-all-tests

@winoros
Copy link
Contributor Author

winoros commented Sep 8, 2020

/run-integration-ddl-test

@Connor1996 Connor1996 added this to the v4.0.6 milestone Sep 8, 2020
@Connor1996 Connor1996 added the type/cherry-pick Type: PR - Cherry pick label Sep 8, 2020
Copy link
Member

@iosmanthus iosmanthus left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Sep 8, 2020
@Connor1996
Copy link
Member

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 8, 2020
@ti-srebot
Copy link
Contributor

Your auto merge job has been accepted, waiting for:

  • 8460

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@winoros merge failed.

@AilinKid
Copy link
Contributor

AilinKid commented Sep 8, 2020

/run-integration-common-test

@Connor1996
Copy link
Member

/merge

@ti-srebot
Copy link
Contributor

Your auto merge job has been accepted, waiting for:

  • 8460
  • 8497
  • 8446
  • 8524
  • 8560
  • 8463

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 6eca344 into tikv:release-4.0 Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/cherry-pick Type: PR - Cherry pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants