-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Online DDL: more support for INSTANT DDL #11591
Merged
shlomi-noach
merged 2 commits into
vitessio:main
from
planetscale:online-ddl-more-instant-ddl
Oct 27, 2022
Merged
Online DDL: more support for INSTANT DDL #11591
shlomi-noach
merged 2 commits into
vitessio:main
from
planetscale:online-ddl-more-instant-ddl
Oct 27, 2022
Conversation
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
…alled '--prefer-instant-ddl' Signed-off-by: Shlomi Noach <[email protected]>
shlomi-noach
requested review from
harshit-gangal,
systay,
mattlord and
deepthi
as code owners
October 27, 2022 07:50
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
dbussink
approved these changes
Oct 27, 2022
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.
One tiny spelling nit 😄
version: "8.0.21", | ||
create: "create table t(id int, i1 int not null, primary key(id))", | ||
alter: "alter table t modify column i1 int default null", | ||
instant: false, | ||
}, | ||
{ | ||
// fail because on top of changing the default valuem, the datatype is changed, too |
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.
Type with valuem
Signed-off-by: Shlomi Noach <[email protected]>
shlomi-noach
added
Type: Enhancement
Logical improvement (somewhere between a bug and feature)
Component: Query Serving
labels
Oct 27, 2022
notfelineit
pushed a commit
to planetscale/vitess
that referenced
this pull request
Nov 16, 2022
) * Online DDL: support instant DDL for enum changes; strategy flag now called '--prefer-instant-ddl' Signed-off-by: Shlomi Noach <[email protected]> * typo Signed-off-by: Shlomi Noach <[email protected]> Signed-off-by: Shlomi Noach <[email protected]> Signed-off-by: Shlomi Noach <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component: Query Serving
Type: Enhancement
Logical improvement (somewhere between a bug and feature)
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.
Description
Followup to #10402, in this PR:
--prefer-instant-ddl
ENUM/SET
instant DDLsDROP COLUMN
(INSTANT not supported inCOMPRESSED
tables)As reminders/context:
ALTER TABLE
operations--prefer-instant-ddl
is specified, we capture and analyze those specific operationsINSTANT
, we addALGORITHM=INSTANT
and run the schema migration directly, and do not pass it through togh-ost
norvitess/vreplication
.INSTANT
algorithm are non-revertible.Related Issue(s)
Tracking: #6926
Checklist
Deployment Notes