@@ -1621,7 +1621,7 @@ func (u *sqlSymUnion) filterType() tree.FilterType {
16211621%type <[]tree.RangePartition> range_partitions
16221622%type <empty> opt_all_clause
16231623%type <empty> opt_privileges_clause
1624- %type <bool> distinct_clause opt_with_data
1624+ %type <bool> distinct_clause opt_with_data opt_create_as_data
16251625%type <tree.DistinctOn> distinct_on_clause
16261626%type <tree.NameList> opt_column_list insert_column_list opt_stats_columns query_stats_cols
16271627// Note that "no index" variants exist to disable custom ORDER BY <index> syntax
@@ -11850,6 +11850,7 @@ create_table_as_stmt:
1185011850 IfNotExists: false,
1185111851 Defs: $5.tblDefs(),
1185211852 AsSource: $8.slct(),
11853+ WithNoData: $9.bool(),
1185311854 StorageParams: $6.storageParams(),
1185411855 OnCommit: $10.createTableOnCommitSetting(),
1185511856 Persistence: $2.persistence(),
@@ -11863,16 +11864,17 @@ create_table_as_stmt:
1186311864 IfNotExists: true,
1186411865 Defs: $8.tblDefs(),
1186511866 AsSource: $11.slct(),
11867+ WithNoData: $12.bool(),
1186611868 StorageParams: $9.storageParams(),
1186711869 OnCommit: $13.createTableOnCommitSetting(),
1186811870 Persistence: $2.persistence(),
1186911871 }
1187011872 }
1187111873
1187211874opt_create_as_data:
11873- /* EMPTY */ { /* no error */ }
11874- | WITH DATA { /* SKIP DOC */ /* This is the default */ }
11875- | WITH NO DATA { return unimplemented(sqllex, "create table as with no data") }
11875+ /* EMPTY */ { $$.val = false }
11876+ | WITH DATA { /* SKIP DOC */ $$.val = false }
11877+ | WITH NO DATA { $$.val = true }
1187611878
1187711879/*
1187811880 * Redundancy here is needed to avoid shift/reduce conflicts,
0 commit comments