|
|
@@ -66,7 +66,7 @@ DropStatement_EDIT
|
|
|
;
|
|
|
|
|
|
DropDatabaseStatement
|
|
|
- : 'DROP' DatabaseOrSchema OptionalIfExists RegularOrBacktickedIdentifier OptionalHiveCascadeOrRestrict
|
|
|
+ : 'DROP' DatabaseOrSchema OptionalIfExists RegularOrBacktickedIdentifier OptionalCascadeOrRestrict
|
|
|
;
|
|
|
|
|
|
DropDatabaseStatement_EDIT
|
|
|
@@ -81,12 +81,12 @@ DropDatabaseStatement_EDIT
|
|
|
}
|
|
|
| 'DROP' DatabaseOrSchema OptionalIfExists RegularOrBacktickedIdentifier 'CURSOR'
|
|
|
{
|
|
|
- if (parser.isHive()) {
|
|
|
+ if (parser.isHive() || parser.isImpala()) {
|
|
|
parser.suggestKeywords(['CASCADE', 'RESTRICT']);
|
|
|
}
|
|
|
}
|
|
|
- | 'DROP' DatabaseOrSchema OptionalIfExists_EDIT RegularOrBacktickedIdentifier OptionalHiveCascadeOrRestrict
|
|
|
- | 'DROP' DatabaseOrSchema OptionalIfExists 'CURSOR' RegularOrBacktickedIdentifier OptionalHiveCascadeOrRestrict
|
|
|
+ | 'DROP' DatabaseOrSchema OptionalIfExists_EDIT RegularOrBacktickedIdentifier OptionalCascadeOrRestrict
|
|
|
+ | 'DROP' DatabaseOrSchema OptionalIfExists 'CURSOR' RegularOrBacktickedIdentifier OptionalCascadeOrRestrict
|
|
|
{
|
|
|
if (!$3) {
|
|
|
parser.suggestKeywords(['IF EXISTS']);
|