-
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
schemadiff
: ALTER TABLE is not INSTANT-able if adding column with default expression value
#16028
Merged
deepthi
merged 1 commit into
vitessio:main
from
planetscale:schemadiff-instant-default-expression
May 31, 2024
Merged
schemadiff
: ALTER TABLE is not INSTANT-able if adding column with default expression value
#16028
deepthi
merged 1 commit into
vitessio:main
from
planetscale:schemadiff-instant-default-expression
May 31, 2024
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
…ault expression value Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
shlomi-noach
added
Type: Bug
Type: Enhancement
Logical improvement (somewhere between a bug and feature)
Component: Query Serving
labels
May 30, 2024
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
vitess-bot
bot
added
NeedsBackportReason
If backport labels have been applied to a PR, a justification is required
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsIssue
A linked issue is missing for this Pull Request
NeedsWebsiteDocsUpdate
What it says
labels
May 30, 2024
shlomi-noach
changed the title
schemadiff: ALTER TABLE is not INSTANT-able if adding column with default expression value
May 30, 2024
schemadiff
: ALTER TABLE is not INSTANT-able if adding column with default expression value
shlomi-noach
removed
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsWebsiteDocsUpdate
What it says
NeedsIssue
A linked issue is missing for this Pull Request
NeedsBackportReason
If backport labels have been applied to a PR, a justification is required
labels
May 30, 2024
dbussink
approved these changes
May 30, 2024
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16028 +/- ##
==========================================
- Coverage 68.23% 68.23% -0.01%
==========================================
Files 1541 1541
Lines 197115 197117 +2
==========================================
- Hits 134503 134499 -4
- Misses 62612 62618 +6 ☔ View full report in Codecov by Sentry. |
deepthi
approved these changes
May 31, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component: Query Serving
Type: Bug
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
Fixes #16024
Although not documented in https://dev.mysql.com/doc/refman/8.0/en/innodb-online-ddl-operations.html, adding a column with a default expression (non-literal) value is not eligible for
INSTANT
DDL:vs
This PR makes
schemadiff
aware of said limitation.Related Issue(s)
schemadiff
should not allowINSTANT
DDL when setting expression-based default column value #16024INSTANT
-capable changes #14877Checklist
Deployment Notes