add impala lifecycle

This commit is contained in:
HSunboy
2019-12-25 10:58:12 +08:00
parent 67b3f68113
commit a486270ab1
8 changed files with 1035 additions and 1034 deletions

View File

@ -67,7 +67,6 @@
<hive>'USER' { return '<hive>USER'; }
<hive>'USING' { return '<hive>USING'; }
<hive>'VIEWS' { return '<hive>VIEWS'; }
<hive>'LIFECYCLE' { return '<hive>LIFECYCLE'; }
// Non-reserved Keywords
<hive>'ABORT' { parser.determineCase(yytext); return '<hive>ABORT'; }
@ -331,6 +330,7 @@
<between>'AND' { this.popState(); return 'BETWEEN_AND'; }
// Reserved Keywords
'LIFECYCLE' { return 'LIFECYCLE'; }
'ALL' { return 'ALL'; }
'ALTER' { parser.determineCase(yytext); parser.addStatementTypeLocation('ALTER', yylloc, yy.lexer.upcomingInput()); return 'ALTER'; }
'AND' { return 'AND'; }

View File

@ -157,7 +157,7 @@ TableDefinition
LifeCyclePart
:
| '<hive>LIFECYCLE' 'UNSIGNED_INTEGER'
| 'LIFECYCLE' 'UNSIGNED_INTEGER'
;
TableDefinition_EDIT