-
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: include "CREATE/DROP TEMPORARY TABLE" to noop functions (##609) #22860
Conversation
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
ee38a99
to
81daea9
Compare
…ngcap#609) TiDB ignores the TEMPORARY keyword in "CREATE/DROP TEMPORARY TABLE" statements. Report errors when and only when tidb_enable_noop_functions = OFF.
81daea9
to
3ef8f42
Compare
Force pushed to fix the commit message. |
LGTM |
The following documents should be updated once the present pull request is merged. |
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.
LGTM
PTAL @zz-jason |
Co-authored-by: bb7133 <[email protected]>
For reviewers: note that A longer explaination:
This is a really useful improvement to prevent incorrect usage and likely data corruption. |
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.
LGTM
@zz-jason: Please use If you have approved this PR, please ignore this reply. This reply is being used as a temporary reply during the migration of the new bot and will be removed on April 1. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
@nayuta-yanagisawa: GitHub didn't allow me to assign the following users: committer. Note that only pingcap members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/LGTM |
/merge |
@morgo: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
@morgo: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/lgtm |
I removed the require-LGT3 tag because it looked like the bot was misbehaving. But now I think the previous lgtm's may have failed because of the missing sig. @hi-rustin do you mind taking a look? |
/run-all-tests |
/run-e2e-test |
What is the misbehaving you are talking about? I think everything was fine before the require-LGT3 was removed. Now the bot can't merge because the number of lgtms doesn't match the required lgtms (it may look like a bug, but it's actually because require-LGT3 was removed). You should now add back require-LGT3 and it will work fine. |
I modified the code so that it also merges when the number of lgtm is greater than the requested number. (But this is rarely the case, except in the above case), because the bot will only respond and reply to the requested number, instead of growing lgtm number infinitely. |
Also this test was broken last week, the robot will not require this test to pass. |
Here committer does not mean someone called committer. you can /assign @morgo to request morgo to merge your PR. You can find all the committers at this link: https://prow.tidb.io/tichi/repos/pingcap/tidb/pulls/22860/owners /assign @morgo |
* Update doc according to pingcap/tidb#22860 pingcap/parser#609 pingcap/tidb#22860 * Update sql-statements/sql-statement-create-table.md Co-authored-by: TomShawn <[email protected]>
What problem does this PR solve?
Issue Number: close pingcap/parser#609
Problem Summary:
Currently, TiDB ignores the
TEMPORARY
keyword in "CREATE/DROP TEMPORARY TABLE" statements.What is changed and how it works?
I added "CREATE/DROP TEMPORARY TABLE" statements to noop functions. The statements returns errors when and only when
tidb_enable_noop_functions = OFF
.Note that "CREATE/DROP TEMPORARY SEQUENCE" statements are out of the scope of the pull request. TiDB seems not to support the statements as far as I read the documentation, TiDB SEQUENCE GENERATOR. In fact, TiDB v4.0 returns syntax errors for the statements.
Related changes
Check List
Tests
Side effects
Release note