mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge pull request #63811 from zzyReal666/63657
fix antlr insertStmt for issue 63657
This commit is contained in:
commit
706056015a
@ -218,9 +218,17 @@ insertStmt: INSERT INTO TABLE? (tableIdentifier | FUNCTION tableFunctionExpr) co
|
||||
|
||||
columnsClause: LPAREN nestedIdentifier (COMMA nestedIdentifier)* RPAREN;
|
||||
dataClause
|
||||
: FORMAT identifier # DataClauseFormat
|
||||
| VALUES # DataClauseValues
|
||||
| selectUnionStmt SEMICOLON? EOF # DataClauseSelect
|
||||
: FORMAT identifier # DataClauseFormat
|
||||
| VALUES assignmentValues (COMMA assignmentValues)* # DataClauseValues
|
||||
| selectUnionStmt SEMICOLON? EOF # DataClauseSelect
|
||||
;
|
||||
|
||||
assignmentValues
|
||||
: LPAREN assignmentValue (COMMA assignmentValue)* RPAREN
|
||||
| LPAREN RPAREN
|
||||
;
|
||||
assignmentValue
|
||||
: literal
|
||||
;
|
||||
|
||||
// KILL statement
|
||||
|
Loading…
Reference in New Issue
Block a user