-
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
*: Enable plan cache for partitioned tables | tidb-test=pr/2273 #49161
Merged
ti-chi-bot
merged 145 commits into
pingcap:master
from
mjonss:part-enable-prep-plan-cache
Mar 12, 2024
Merged
Changes from all commits
Commits
Show all changes
145 commits
Select commit
Hold shift + click to select a range
698c4eb
Just remove the limitations, to check what may break...
mjonss e6186a9
make bazel_prepare, added test..
mjonss cfe5b52
Added test
mjonss 1f36506
First step to support single column PK+partitioned table (no expression)
mjonss 71dc3d4
Linting
mjonss 63abee1
Updated tests
mjonss 01bc1e6
Merge remote-tracking branch 'pingcap/master' into part-enable-prep-p…
mjonss d2ec635
WIP, some progress with point get and re-prune partitions
mjonss 7f1a7b5
Merge remote-tracking branch 'pingcap/master' into part-enable-prep-p…
mjonss 6774483
Linting
mjonss 342bb1b
Fixed some tests and blocking prepared plan cache if static mode was …
mjonss b012bdb
Removed renaming of variables due to #49989
mjonss 3340e87
Reverted name change of partDef/Info due to #49989.
mjonss ce40f2c
Removed bad vim insert...
mjonss 8bb7cb7
Removed some debug panics
mjonss ddb6a64
Added analyze table, to enable dynamic prune mode in tests.
mjonss ce22e4d
Added handling of batch_point_get for IndexValues.
mjonss 7a4d6fe
Added rebuild range for table scans and partitioned tables.
mjonss b40153a
Handle issue with no matching partitions.
mjonss 13353f8
Adjusted TestPartitionWithVariedDataSources test
mjonss e399b22
Linting / bazel_prepare
mjonss 8a6c6a3
Consider a single partition full range still as a single partition
mjonss 5a320c1
BuildRangeForIndexScan can skip pruning, since it is done later
mjonss cd74bc2
Re-evaluating ParamMarker in-place and updated some tests
mjonss b956eca
Updated test, global statistics needs to exists for plan cache of par…
mjonss 9d15c48
Some cleanups
mjonss 07c5229
Merge remote-tracking branch 'pingcap/master' into part-enable-prep-p…
mjonss fe4f256
Merge remote-tracking branch 'pingcap/master' into part-enable-prep-p…
mjonss 0af4b92
Cleaning up
mjonss 2196da4
small cleanups of TODOs
mjonss 0986615
Merge remote-tracking branch 'pingcap/master' into part-enable-prep-p…
mjonss f360070
Cleanup and test updates.
mjonss 8e9f7c0
Added test, and fixed issue with hash partition col not first
mjonss 29e8812
Linting
mjonss 43beddd
bazel_prepare
mjonss 021d27c
Linting
mjonss 877a9ad
Merge remote-tracking branch 'pingcap/master' into part-enable-prep-p…
mjonss 26fa208
Manual merge fix, changed interface{} to any
mjonss d7d3d61
Linting
mjonss 0bd604c
Cleanup and more tests
mjonss b1b170a
Test cleanup
mjonss c9f6b01
Added Fix-control and cleanup
mjonss 69e4017
Minor test updates
mjonss be49dd2
Check if partitioned table instead of previous pruning result
mjonss 1eeac56
Linting and cleanups
mjonss 3de79c8
WIP 1
mjonss 5774626
wip2
mjonss ae4e24e
wip
mjonss 5a26bdf
wip, one step further, but messy code
mjonss e74b6f1
Using LocatePartition instead of Pruning for PointGet
mjonss 08b802a
Updated tests
mjonss 73c1a2d
Updated test
mjonss c42cf7f
Merge remote-tracking branch 'pingcap/master' into part-enable-prep-p…
mjonss e93aeb8
Moved Batch Point Get partition pruning to build phase
mjonss 2d0329e
Cleanup
mjonss b4360b2
Cleanups
mjonss d81a894
More cleanups
mjonss 44865b9
Linting
mjonss 30c150b
Fixed BatchPointGet and some cleanups
mjonss f6babd5
Fixed secondary key lookups for batch get and cleanups
mjonss 062cf39
minor fixes and cleanups
mjonss 8d1d553
Missesd a case for PointGet on int handle
mjonss 7e5f851
Cleanups
mjonss 6115428
Improved BatchPointGet and partition pruning + explain
mjonss aa0cc95
Linting
mjonss 2dc15fc
Test result update
mjonss e0d3d2d
Treat any pruning error in PointGet as impossible partition
mjonss df5377c
wip
mjonss 00138f3
PointGet fix
mjonss 9c9b8fa
Added explicit partition selection to PointGet
mjonss 04a4003
bazel prepare
mjonss 38c8933
Test restult update
mjonss 0ea1a66
Updated test
mjonss e0db338
Updated test results
mjonss 6308b24
Fixed Point Get for global index
mjonss c667cb7
Updated test results
mjonss 2df095a
updated test results
mjonss eeb4a15
Updated test results
mjonss a0ebde1
fix for global index
mjonss 5f44fa0
Updated test, explain now starts a transaction
mjonss d1fe102
Updated test
mjonss cc201b9
Updated point get to fetch the correct index statistics
mjonss 4b08ffb
Updated tests
mjonss ac8bc07
Updated test results
mjonss 6d86e0b
Fixed test
mjonss 7e45260
Updated test
mjonss 3f2fd78
updated test results
mjonss 5a57548
Fixed assert
mjonss 167ca13
Test updated
mjonss 2b4da02
Added support for explicit partition selection with global index
mjonss b2c4daa
Delayed enabling more partitioning types for BatchPointGet
mjonss a273abc
Test updates
mjonss a291d7a
Updated test
mjonss bb2bb03
Updated test results
mjonss 000161e
Updated tests
mjonss d404082
Update test results
mjonss 99f1c47
Updated test results
mjonss 126a26e
Test update
mjonss 65fecf9
Updated test
mjonss adaa834
Updated test results
mjonss e03c721
Test update
mjonss 419beb1
Updated comments
mjonss ac46e40
WIP, will not compile, temporary commit for moving to other computer
mjonss e394473
Code reshuffle and fixed prefetch for partitioned tables.
mjonss fde70e0
setting planPhysIDs in buildBatchPointGetExec
mjonss f4384cf
Propagating more fields from plan to BatchPointGetExec
mjonss 2ec2d36
Linting
mjonss b3226b1
Missed not...
mjonss e1095b7
Updated capacity (missed if only idxVals).
mjonss 8158fb8
Single partition bug
mjonss e32ef0d
Test result update
mjonss 0e19256
Test result updated
mjonss e062ef2
Test result updated
mjonss 9fda2d9
Test result updated
mjonss 4160625
Merge remote-tracking branch 'pingcap/master' into part-enable-prep-p…
mjonss bb1f2af
Fixed case where plan cache had less handles than HandleParams
mjonss b1305dd
Fixed test case
mjonss 10f87ed
Added temporary tests
mjonss e9d74d6
Resetting lenght of IndexValues if prev run removed values.
mjonss 0bd8a28
Merge remote-tracking branch 'pingcap/master' into part-enable-prep-p…
mjonss 02a6c79
Minor code refactoring / renameing
mjonss dfaeedc
Updated test result
mjonss 99ff082
Added back some limitations for BatchPointGet
mjonss 9c0eb80
Test update
mjonss 4392493
Updated test
mjonss dc98212
Reverted removal of failpoint in test, to remove noise in PR
mjonss fbbdba4
Cleanup and test refinement
mjonss bbb2a0f
Refined test
mjonss 0114d32
Refined test
mjonss bd4f7a2
Test refinement
mjonss fcb7950
Merge remote-tracking branch 'pingcap/master' into part-enable-prep-p…
mjonss 7218194
Removed reEvaluateParamMarker which is no longer needed.
mjonss 84edeb3
Fixed review comments
mjonss 52d6713
Fixed point_get during truncate partition and global index
mjonss 410329c
Addressed review comments
mjonss e73e022
Review comments fixed
mjonss 72390c1
Refined a loop
mjonss 13b81af
Cleaned up a loop
mjonss 60219a0
Review comments
mjonss 924a51d
Fixed review comments
mjonss b1a5480
Updated according to review comments
mjonss 71790ee
Accepting duplicate warnings in agreement with reviewer
mjonss 6ccbe69
Merge remote-tracking branch 'pingcap/master' into part-enable-prep-p…
mjonss 8c573c9
Merge remote-tracking branch 'pingcap/master' into part-enable-prep-p…
mjonss f3c6807
Linting after manual merge conflict
mjonss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
FYI: Moved to types/datum.go