mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Support cte statement for antlr4 syntax file #39810
This commit is contained in:
parent
5ae7f339c4
commit
094b28b869
@ -26,6 +26,20 @@ query
|
||||
| truncateStmt // DDL
|
||||
| useStmt
|
||||
| watchStmt
|
||||
| ctes? selectStmt
|
||||
;
|
||||
|
||||
// CTE statement
|
||||
ctes
|
||||
: WITH namedQuery (',' namedQuery)*
|
||||
;
|
||||
|
||||
namedQuery
|
||||
: name=identifier (columnAliases)? AS '(' query ')'
|
||||
;
|
||||
|
||||
columnAliases
|
||||
: '(' identifier (',' identifier)* ')'
|
||||
;
|
||||
|
||||
// ALTER statement
|
||||
|
Loading…
Reference in New Issue
Block a user