Skip to content

Commit 6ee0627

Browse files
committed
fix: #290 hive lifecycle
1 parent 1a0e2fa commit 6ee0627

File tree

4 files changed

+2294
-2265
lines changed

4 files changed

+2294
-2265
lines changed

src/grammar/hive/HiveSqlParser.g4

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,16 +1634,16 @@ Rules for parsing createtable
16341634
*/
16351635
createTableStatement
16361636
: KW_CREATE temp=KW_TEMPORARY? trans=KW_TRANSACTIONAL? ext=KW_EXTERNAL? KW_TABLE ifNotExists? name=tableNameCreate (
1637-
likeTableOrFile createTablePartitionSpec? tableRowFormat? tableFileFormat? tableLocation? tablePropertiesPrefixed?
1638-
| (LPAREN columnNameTypeOrConstraintList RPAREN)? tableComment? tableLifecycle? createTablePartitionSpec? tableBuckets? tableSkewed?
1639-
tableRowFormat? tableFileFormat? tableLocation? tablePropertiesPrefixed? (
1637+
likeTableOrFile createTablePartitionSpec? tableRowFormat? tableFileFormat? tableLocation? tablePropertiesPrefixed? tableLifecycle?
1638+
| (LPAREN columnNameTypeOrConstraintList RPAREN)? tableComment? createTablePartitionSpec? tableBuckets? tableSkewed? tableRowFormat?
1639+
tableFileFormat? tableLocation? tablePropertiesPrefixed? tableLifecycle? (
16401640
KW_AS selectStatementWithCTE
16411641
)?
16421642
)
16431643
| KW_CREATE mgd=KW_MANAGED KW_TABLE ifNotExists? name=tableNameCreate (
1644-
likeTableOrFile tableRowFormat? tableFileFormat? tableLocation? tablePropertiesPrefixed?
1645-
| (LPAREN columnNameTypeOrConstraintList RPAREN)? tableComment? tableLifecycle? createTablePartitionSpec? tableBuckets? tableSkewed?
1646-
tableRowFormat? tableFileFormat? tableLocation? tablePropertiesPrefixed? (
1644+
likeTableOrFile tableRowFormat? tableFileFormat? tableLocation? tablePropertiesPrefixed? tableLifecycle?
1645+
| (LPAREN columnNameTypeOrConstraintList RPAREN)? tableComment? createTablePartitionSpec? tableBuckets? tableSkewed? tableRowFormat?
1646+
tableFileFormat? tableLocation? tablePropertiesPrefixed? tableLifecycle? (
16471647
KW_AS selectStatementWithCTE
16481648
)?
16491649
)

src/lib/hive/HiveSqlParser.interp

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)