ddl: DROP GLOBAL TEMPORARY TABLE should fail on normal tables#25639
Conversation
Signed-off-by: lihaowei <haoweili35@gmail.com>
| p.checkDropTableNames(stmt.Tables) | ||
| enableNoopFuncs := p.ctx.GetSessionVars().EnableNoopFuncs | ||
| if stmt.TemporaryKeyword == ast.TemporaryLocal && !enableNoopFuncs { | ||
| if stmt.TemporaryKeyword != ast.TemporaryNone && !enableNoopFuncs { |
There was a problem hiding this comment.
No, dropping global temporary tables is fine for DROP GLOBAL TEMPORARY TABLE ....
E.g.
create global temporary table temp(id int) on commit delete rows;
drop global temporary table temp; # fineSigned-off-by: lihaowei <haoweili35@gmail.com>
|
/run-check_dev_2 |
|
[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. DetailsReviewer can indicate their review by submitting an approval review. |
|
/run-check_dev_2 |
|
It seems some tests panic and the CI never finish ... I'm not sure is it related to this change or our master branch is unstable |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: a59fa6c |
|
ref #25724 |
|
@Howie59: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. DetailsInstructions 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. |
Signed-off-by: lihaowei haoweili35@gmail.com
What problem does this PR solve?
Issue Number: close #25595
What is changed and how it works?
Proposal: temporary table
Check List
Tests
Release note