Skip to content
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

Bug Report: schemadiff should not allow INSTANT DDL when setting expression-based default column value #16024

Closed
shlomi-noach opened this issue May 29, 2024 · 1 comment · Fixed by #16028

Comments

@shlomi-noach
Copy link
Contributor

shlomi-noach commented May 29, 2024

Overview of the Issue

Although not mentioned in the MySQL docs, the following is not an INSTANT-able operation:

> alter table t add column i int default ((2+5)), algorithm=instant;
ERROR 1845 (0A000): ALGORITHM=INSTANT is not supported for this operation. Try ALGORITHM=COPY/INPLACE.

MySQL will not accept an expression-based default value with INSTANT algorithm.

Context: #14877

Reproduction Steps

Binary Version

v19

Operating System and Environment details

-

Log Fragments

No response

@shlomi-noach shlomi-noach added Type: Bug Needs Triage This issue needs to be correctly labelled and triaged Component: Query Serving and removed Needs Triage This issue needs to be correctly labelled and triaged labels May 29, 2024
@shlomi-noach shlomi-noach self-assigned this May 29, 2024
@shlomi-noach
Copy link
Contributor Author

Note: alter table t modify column i1 int default ((2+5)), algorithm=instant; works for an existing column. The problem is with adding a new columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant