Files
sqlparser/parser/testdata/dml/format/alter_table_with_comment.sql

9 lines
441 B
SQL

-- Origin SQL:
ALTER TABLE test.events_local ON CLUSTER 'default_cluster' ADD COLUMN a.f1 String default '' comment 'test' ;
ALTER TABLE test.events_local ON CLUSTER 'default_cluster' ADD COLUMN hello String default '';
-- Format SQL:
ALTER TABLE test.events_local ON CLUSTER 'default_cluster' ADD COLUMN a.f1 String DEFAULT '' COMMENT 'test';
ALTER TABLE test.events_local ON CLUSTER 'default_cluster' ADD COLUMN hello String DEFAULT '';