-
Notifications
You must be signed in to change notification settings - Fork 599
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
refactor(frontend): reuse def purification for assembling cdc table def when auto schema change #19997
Conversation
5d7a9dc
to
9674e8d
Compare
a99493c
to
f49d480
Compare
9674e8d
to
4e2ba8c
Compare
f49d480
to
0eec676
Compare
4e2ba8c
to
f31c80f
Compare
0eec676
to
a1d128a
Compare
f31c80f
to
66cb893
Compare
a1d128a
to
39de517
Compare
39de517
to
ef3c482
Compare
34145ee
to
b958c45
Compare
ef3c482
to
af1671f
Compare
b958c45
to
fc48f02
Compare
af1671f
to
afc5463
Compare
fc48f02
to
1126076
Compare
afc5463
to
4fb5edd
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.
LGTM
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.
Rest lgtm
new_column_defs.push(ColumnDef::new(new_col.name().into(), ty, None, vec![])); | ||
} | ||
columns.clear(); | ||
constraints.clear(); |
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.
The constraint is also cleared here, does try_purify_table_source_create_sql_ast
can rebuild the constraint from the new_columns
?
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.
Yes, for the primary key table constraint.
); | ||
|
||
if bind_table_constraints(constraints)?.is_empty() { | ||
// For table created by `create table t (*)` the constraint is empty, we need to |
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.
Suggest to keep this line of comment as a side note.
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.
This will always be handled in try_purify_table_source_create_sql_ast
.
1126076
to
1ebc3b2
Compare
df8fbed
to
84c5ecc
Compare
Signed-off-by: Bugen Zhao <[email protected]>
…ef when schema change Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
84c5ecc
to
f95d993
Compare
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
As title. Also simplify the arguments of related functions.
Checklist
Documentation
Release note