Files
sqlparser/parser/testdata/ddl/format/create_distributed_table.sql

15 lines
401 B
SQL

-- Origin SQL:
create table test.event_all
ON CLUSTER 'default_cluster'
AS test.evnets_local
ENGINE = Distributed(
default_cluster,
test,
events_local,
rand()
) SETTINGS fsync_after_insert=0;
-- Format SQL:
CREATE TABLE test.event_all ON CLUSTER 'default_cluster' AS test.evnets_local ENGINE = Distributed(default_cluster, test, events_local, rand()) SETTINGS fsync_after_insert=0;