Closed askwang closed 2 weeks ago
Why do we need a new alter
ddl syntax. Is it the same as the call
procedure ?
Why do we need a new
alter
ddl syntax. Is it the same as thecall
procedure ?
SQL syntax support will be provided later, it is the same as procedure call.
Why do we use alter table
instead of call
if they are the same? And alter table
should be used to modify the table metadata information, like alter table add col.
Why do we use
alter table
instead ofcall
if they are the same? Andalter table
should be used to modify the table metadata information, like alter table add col.
I think tag/snapshot are also part of the table meta info, maybe we can use alter table to modify it.
Why do we use
alter table
instead ofcall
if they are the same? Andalter table
should be used to modify the table metadata information, like alter table add col.
I agree with your idea. I have checked and currently no other lake formats have implemented custom syntax here. We can consider temporarily stopping and using CALL is not a bad idea.
@askwang What do you think?
In my mind, rollback should actually generate a new snapshot containing the changes, from this perspective, alter table should not be used. (although the current implementation directly deletes the existing snapshots).
Besides in spark doc description: ALTER TABLE statement changes the schema or properties of a table.
Why do we use
alter table
instead ofcall
if they are the same? Andalter table
should be used to modify the table metadata information, like alter table add col.I agree with your idea. I have checked and currently no other lake formats have implemented custom syntax here. We can consider temporarily stopping and using CALL is not a bad idea.
@askwang What do you think?
ok
Purpose
Add rollback to snapshot/tag/timestamp ddl syntax.
Tests
API and Format
Documentation