Skip to content

Commit

Permalink
Merge pull request #277 from dolthub/nicktobey/createas
Browse files Browse the repository at this point in the history
Allow parsing of `CREATE TABLE t AS (...) UNION (...)`
  • Loading branch information
nicktobey authored Sep 29, 2023
2 parents 81f975e + 5b302d3 commit 6c60b48
Show file tree
Hide file tree
Showing 3 changed files with 11,360 additions and 11,332 deletions.
3 changes: 3 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ var (
{
input: "select 1 from t except distinct select 1 from t",
},
{
input: "create table u as select 1 from t intersect all select 1 from t",
},
{
input: "(select id, a from t order by id limit 1) union (select id, b as a from s order by id limit 1) order by a limit 1",
output: "(select id, a from t order by id asc limit 1) union (select id, b as a from s order by id asc limit 1) order by a asc limit 1",
Expand Down
Loading

0 comments on commit 6c60b48

Please sign in to comment.