-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
planner: fix insert with select the same table result no error #issue 31363 #33565
Open
fanrenhoo
wants to merge
58
commits into
pingcap:master
Choose a base branch
from
fanrenhoo:insertselectsametable
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.
+67
−13
Open
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
3a5ef3e
fix insert with select the same table no error #issue 31363
fanrenhoo cc003cf
fix insert with subquery select the same table result no error #issue…
fanrenhoo f35041a
fix insert with select the same table no error #issue 31363
fanrenhoo f70fa17
fix the insert with select the same table result no error #issue 31363
fanrenhoo cf129f8
*: fix merge
xhebox 47d6b5a
*: fix CI
xhebox e3d9bf5
fix insert with select the same table result no error #issue 31363
fanrenhoo a45457c
Merge branch 'master' into insertselectsametable
fanrenhoo 06cd6da
Merge branch 'master' into insertselectsametable
ti-chi-bot 7490155
Merge branch 'master' into insertselectsametable
ti-chi-bot 65b0e64
Merge branch 'master' into insertselectsametable
ti-chi-bot b20423a
Merge branch 'master' into insertselectsametable
ti-chi-bot 2abad2b
Merge branch 'master' into insertselectsametable
ti-chi-bot 6208e1a
Merge branch 'master' into insertselectsametable
ti-chi-bot 320c4f4
Merge branch 'master' into insertselectsametable
ti-chi-bot 4e1813d
Merge branch 'master' into insertselectsametable
ti-chi-bot 8a0ce45
Merge branch 'master' into insertselectsametable
ti-chi-bot 5da545c
Merge branch 'master' into insertselectsametable
ti-chi-bot 31f631e
Merge branch 'master' into insertselectsametable
ti-chi-bot c78ce28
Merge branch 'master' into insertselectsametable
ti-chi-bot ae35ca0
Merge branch 'master' into insertselectsametable
xhebox ee42902
*: fix build
xhebox 0069d7f
Merge branch 'master' into insertselectsametable
ti-chi-bot 89260c4
Merge branch 'master' into insertselectsametable
ti-chi-bot 600ee68
Merge branch 'master' into insertselectsametable
ti-chi-bot 21f1862
Merge branch 'master' into insertselectsametable
ti-chi-bot cdbf47a
Merge branch 'master' into insertselectsametable
ti-chi-bot 103cdfe
Merge branch 'master' into insertselectsametable
ti-chi-bot d2cdd54
Merge branch 'master' into insertselectsametable
ti-chi-bot f74da07
Merge branch 'master' into insertselectsametable
ti-chi-bot 019b294
Merge branch 'master' into insertselectsametable
ti-chi-bot 88180ed
Merge branch 'master' into insertselectsametable
ti-chi-bot 27f5751
Merge branch 'master' into insertselectsametable
ti-chi-bot fb0bc56
Merge branch 'master' into insertselectsametable
ti-chi-bot fb0909b
Merge branch 'master' into insertselectsametable
ti-chi-bot 2614a32
Merge branch 'master' into insertselectsametable
ti-chi-bot f2fe0af
Merge branch 'master' into insertselectsametable
ti-chi-bot 2b2a909
Merge branch 'master' into insertselectsametable
ti-chi-bot 7f747d9
Merge branch 'master' into insertselectsametable
ti-chi-bot 8278c4b
Merge branch 'master' into insertselectsametable
ti-chi-bot 58fab0a
Merge branch 'master' into insertselectsametable
ti-chi-bot f87e2b8
Merge branch 'master' into insertselectsametable
ti-chi-bot e616b92
Merge branch 'master' into insertselectsametable
ti-chi-bot 65122a6
Merge branch 'master' into insertselectsametable
ti-chi-bot ec733ec
Merge branch 'master' into insertselectsametable
ti-chi-bot 56526a5
Merge branch 'master' into insertselectsametable
ti-chi-bot aeb131f
Merge branch 'master' into insertselectsametable
ti-chi-bot 2982d08
Merge branch 'master' into insertselectsametable
ti-chi-bot c6144f7
Merge branch 'master' into insertselectsametable
ti-chi-bot 490b008
Merge branch 'master' into insertselectsametable
ti-chi-bot dbb5bf4
Merge branch 'master' into insertselectsametable
ti-chi-bot c75bcd0
Merge branch 'master' into insertselectsametable
ti-chi-bot 012a87c
Merge branch 'master' into insertselectsametable
ti-chi-bot 2bae135
Merge branch 'master' into insertselectsametable
ti-chi-bot b945bd0
Merge branch 'master' into insertselectsametable
ti-chi-bot 33ca045
Merge branch 'master' of github.com:pingcap/tidb into insertselectsam…
xhebox 7f2bc97
fix
xhebox 4c69d36
fix
xhebox 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
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
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
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.
Sorry for the late reply. It seems that we need to also handle the following case:
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.
Maybe we can recursively extract all the tables in
TableRefs
:Join
node, then recursively look at the left node and the right node.TableSource
node, check its table name.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.
Thks. Done as guided, please check. BR
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.
/cc @xuyifangreeneyes