statistics: build global statistics for table partition#18717
statistics: build global statistics for table partition#18717lysu wants to merge 4 commits intopingcap:masterfrom lysu:dev-analyze-ptable
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18717 +/- ##
================================================
+ Coverage 79.0545% 79.2412% +0.1866%
================================================
Files 546 546
Lines 148433 148313 -120
================================================
+ Hits 117343 117525 +182
+ Misses 21614 21289 -325
- Partials 9476 9499 +23 |
|
/run-all-tests |
ddl/ddl_api.go
Outdated
There was a problem hiding this comment.
emmm..we need one method to cut off old stats to new stats...
current code chooses new partition tables use new stats and old partition tables use old stats, and add IsNewPartition flag to mark it...maybe we need more discuss about how to "switch old stats to new stats" or "switch old partition to new partition"
tryOldPartitionImplementation at here, just make test can run test in both new/old stats format.
There was a problem hiding this comment.
tryOldPartitionImplementation is a runtime flag.
I mean, do we have to persistent the flag in the model.TableInfo? That flag is stored in the storage, and may bring compatible issue.
|
@tiancaiamao this pr became too large, I will split it tody - -~ |
cmd/explaintest/r/select.result
Outdated
There was a problem hiding this comment.
we cannot get a stable est count after change to global status that range query using sample based column histogram.
(before this pr it's full tablescan and can use table count directly)
so need improve explain test firstly - -
|
/run-all-tests tikv=pr/8443 |
|
/run-integration-ddl-test tikv=pr/8443 |
|
/rebuild |
|
/run-unit-test |
|
/run-all-tests |
|
/run-integration-compatibility-test |
|
/run-all-tests |
|
/run-check_dev_2 |
|
/run-all-tests tidb-test=pr/1086 |
|
/run-all-tests |
1 similar comment
|
/run-all-tests |
|
/run-check_dev_2 |
|
/test-check_dev_2 |
|
/run-all-tests |
|
/run-all-tests |
What problem does this PR solve?
Issue Number: ref #18551
Problem Summary:
to support planner select index before pruning
What is changed and how it works?
What's Changed:
How it Works:
Related changes
Check List
Tests
Side effects
Release note
This change is