Skip to content

added alter table wait applied and timeout params

Follow up for picodata!1715 (merged)

See query ebnf changes:

alter_table    ::= 'ALTER' 'TABLE' table (
                       ('ADD' 'COLUMN'? ('IF' 'NOT' 'EXISTS')? (column type ('NOT' 'NULL')?) (',' column type ('NOT' 'NULL')?)*)
                       | ('RENAME' 'COLUMN'? (column 'TO' column) (',' column 'TO' column)*)
                       | ('DROP' 'COLUMN'? ('IF' 'EXISTS')? (column) (',' column)*)
                       | ('ALTER' 'COLUMN'?
                           (column (
                               (('SET' 'DATA')? 'TYPE' type)
                               | (('SET' | 'DROP') 'NOT' 'NULL')
                           ))
                           (',' column (
                               (('SET' 'DATA')? 'TYPE' type)
                               | (('SET' | 'DROP') 'NOT' 'NULL')
                           ))*
                       )
                   )
+                   ('WAIT' 'APPLIED' ('GLOBALLY' | 'LOCALLY'))?
+                   ('OPTION' '(' ('TIMEOUT' '=' double)')')?
Edited by Егор Ивков