-
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
ddl: support all engine for temporary tables #28815
Conversation
[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 submitting an approval review. |
Found an unstable test #28816 |
Do we have to support all engines for temporary table or just allow engine |
Besides transactions, there are some other problems from lying about engine - memory supports hash and btree indexes; and the btree indexes are non-clustered, so the usage will differ. But the documentation is at least pretty clear: https://docs.pingcap.com/tidb/stable/mysql-compatibility#storage-engines I think all is more consistent with the rest of TiDB for now. |
36b91e8
to
2cf5c69
Compare
2cf5c69
to
7c83d0f
Compare
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.
I found we did not persist engine in TableInfo
and inference it from TempTableType
. Should SHOW CREATE TABLE
returns engine=innodb
instead of engine=memory
?
It is closer to innodb than memory. Memory in MySQL means "heap storage
engine" (non transactional)
…On Sun., Oct. 17, 2021, 9:10 p.m. 王超, ***@***.***> wrote:
***@***.**** commented on this pull request.
I found we did not persist engine in TableInfo and inference it from
TempTableType . Should SHOW CREATE TABLE returns engine=innodb instead of
engine=memory ?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#28815 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOE7SXJHMX65BZVGUU76LUHOFZ5ANCNFSM5F646D3Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
/merge |
This pull request has been accepted and is ready to merge. Commit hash: d81eb52
|
@djshow832: 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. 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. |
What problem does this PR solve?
Issue Number: close #28541
What is changed and how it works?
What's Changed: Support all kinds of engines on temporary tables.
This feature is not public yet, so we don't need a specific release note for this PR.
Check List
Tests
Side effects
Documentation
Release note