mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +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
|
| truncateStmt // DDL
|
||||||
| useStmt
|
| useStmt
|
||||||
| watchStmt
|
| watchStmt
|
||||||
|
| ctes? selectStmt
|
||||||
|
;
|
||||||
|
|
||||||
|
// CTE statement
|
||||||
|
ctes
|
||||||
|
: WITH namedQuery (',' namedQuery)*
|
||||||
|
;
|
||||||
|
|
||||||
|
namedQuery
|
||||||
|
: name=identifier (columnAliases)? AS '(' query ')'
|
||||||
|
;
|
||||||
|
|
||||||
|
columnAliases
|
||||||
|
: '(' identifier (',' identifier)* ')'
|
||||||
;
|
;
|
||||||
|
|
||||||
// ALTER statement
|
// ALTER statement
|
||||||
|
Loading…
Reference in New Issue
Block a user