-
Notifications
You must be signed in to change notification settings - Fork 6.1k
planner: fix join reorder correctness with conflict detection algorithm | tidb-test=pr/2676 #65705
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
Open
guo-shaoge
wants to merge
53
commits into
pingcap:master
Choose a base branch
from
guo-shaoge:cdc_impl
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,162
−1,786
Open
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
3b85d7c
tmp save
guo-shaoge bae4ef7
fix
guo-shaoge eb11e42
fix
guo-shaoge 44a245f
tmp save(design done)
guo-shaoge 57fa419
impl
guo-shaoge 7e5c761
fix
guo-shaoge 92269a6
refine
guo-shaoge 3eb3a30
check usedEdges
guo-shaoge bef8026
check all edges used before finish
guo-shaoge e1e1352
fix
guo-shaoge 61fc874
refine
guo-shaoge af52953
refine replace children
guo-shaoge 1d89f56
refine check all used edges
guo-shaoge 874eedc
refine
guo-shaoge 4bdcd27
update
guo-shaoge ace1f72
Merge branch 'master' of github.com:pingcap/tidb into cdc_impl
guo-shaoge 6c8cd3b
refine
guo-shaoge d266ccf
align schema
guo-shaoge af405ec
refine makeBushyTree()
guo-shaoge 9e456ac
fix cross product edge; fix bushy join construction
guo-shaoge a5d67a0
otherCond for non inner join
guo-shaoge f97223a
refine by mysqltest
guo-shaoge 51cbc2f
update unittest
guo-shaoge 25ede84
bazel
guo-shaoge e532acc
bazel lint
guo-shaoge 8b4c936
license
guo-shaoge 8106809
fix cartesian
guo-shaoge 9712a7f
fix originalSchema.Clone
guo-shaoge f902c9d
update case(need check)
guo-shaoge eb43fd1
fix cartesian
guo-shaoge ec6f134
Merge branch 'master' of github.com:pingcap/tidb into cdc_impl
guo-shaoge 6b5b097
update case(need check)
guo-shaoge 6a34fa1
update case
guo-shaoge 93010a2
Merge branch 'master' of github.com:pingcap/tidb into cdc_impl
guo-shaoge 42f314f
case
guo-shaoge 662d846
case
guo-shaoge 0b0c1e8
bazel
guo-shaoge b675e37
fix some todo
guo-shaoge 6ff9695
ci
guo-shaoge 991d5ad
fast intset
guo-shaoge 0f99f69
Merge branch 'cdc_impl' of github.com:guo-shaoge/tidb into cdc_impl_bkp
guo-shaoge 3efff7b
bazel
guo-shaoge 2b50212
remove dup code injectExpr
guo-shaoge 6dac2f6
remove dup code(SetNewJoinMethodHint)
guo-shaoge 8d0f3f2
remove some todos
guo-shaoge dcb1d6b
refine
guo-shaoge 529a65d
comment
guo-shaoge 284adfd
refine
guo-shaoge dd76b69
remove dup code(hint related)
guo-shaoge a899f59
Merge branch 'cdc_impl' of github.com:guo-shaoge/tidb into cdc_impl_bkp
guo-shaoge f1d0bff
refine
guo-shaoge 86e74fd
milestone-1(ok but still duplicated hint func)
guo-shaoge b92650e
Merge branch 'cdc_impl_bkp' of github.com:guo-shaoge/tidb into cdc_impl
guo-shaoge 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -298,6 +298,7 @@ func GetGEAndLogicalOp[T LogicalPlan](super LogicalPlan) (ge GroupExpression, lo | |
| // JoinType contains CrossJoin, InnerJoin, LeftOuterJoin, RightOuterJoin, SemiJoin, AntiJoin. | ||
| type JoinType int | ||
|
|
||
| // NOTE: keep the order and value unchanged, because they are used in conflict_detector.go!!! | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add an |
||
| const ( | ||
| // InnerJoin means inner join. | ||
| InnerJoin JoinType = iota | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Why did this test change? Is this expected?