Feat check hive create syntax (#157)

* check and update abort and alter sql

* delete superfluous space

* update grammar lib after change alter parser

* update alter parser to be compatible

* check create sql

---------

Co-authored-by: zhaoge <>
This commit is contained in:
XCynthia
2023-09-06 16:42:04 +08:00
committed by GitHub
parent 885b85e842
commit 97ab76af76
11 changed files with 6740 additions and 6555 deletions

View File

@ -225,7 +225,7 @@ orReplace
;
createDatabaseStatement
: KW_CREATE db_schema
: KW_CREATE KW_REMOTE? db_schema
ifNotExists?
name=id_
databaseComment?
@ -568,8 +568,8 @@ dropIndexStatement
: KW_DROP KW_INDEX ifExists? id_ KW_ON tableName;
createViewStatement
: KW_CREATE orReplace? KW_VIEW ifNotExists? name=tableName
(LPAREN columnNameCommentList RPAREN)? tableComment? viewPartition?
: KW_CREATE orReplace? KW_VIEW ifNotExists? name=tableName
(LPAREN columnNameCommentList RPAREN)? tableComment? viewPartition?
tablePropertiesPrefixed?
KW_AS
selectStatementWithCTE
@ -1687,7 +1687,7 @@ createTableStatement
;
createDataConnectorStatement
: KW_CREATE KW_DATACONNECTOR ifNotExists? name=id_ dataConnectorType dataConnectorUrl dataConnectorComment?
: KW_CREATE KW_DATACONNECTOR ifNotExists? name=id_ dataConnectorType? dataConnectorUrl? dataConnectorComment?
(KW_WITH KW_DCPROPERTIES dcprops=dcProperties)?
;