|
@@ -234,8 +234,8 @@ AlterTable_EDIT
|
|
|
} else if (parser.isImpala()) {
|
|
} else if (parser.isImpala()) {
|
|
|
parser.suggestKeywords(['ADD COLUMNS', 'ADD PARTITION', 'ADD RANGE PARTITION', 'ALTER', 'ALTER COLUMN', 'CHANGE',
|
|
parser.suggestKeywords(['ADD COLUMNS', 'ADD PARTITION', 'ADD RANGE PARTITION', 'ALTER', 'ALTER COLUMN', 'CHANGE',
|
|
|
'DROP COLUMN', 'DROP PARTITION', 'DROP RANGE PARTITION', 'PARTITION', 'RECOVER PARTITIONS', 'RENAME TO',
|
|
'DROP COLUMN', 'DROP PARTITION', 'DROP RANGE PARTITION', 'PARTITION', 'RECOVER PARTITIONS', 'RENAME TO',
|
|
|
- 'REPLACE COLUMNS', 'SET CACHED IN', 'SET COLUMN STATS', 'SET FILEFORMAT', 'SET LOCATION','SET SERDEPROPERTIES',
|
|
|
|
|
- 'SET TBLPROPERTIES', 'SET UNCACHED']);
|
|
|
|
|
|
|
+ 'REPLACE COLUMNS', 'SET CACHED IN', 'SET COLUMN STATS', 'SET FILEFORMAT', 'SET LOCATION', 'SET ROW FORMAT',
|
|
|
|
|
+ 'SET SERDEPROPERTIES', 'SET TBLPROPERTIES', 'SET UNCACHED']);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
| AlterTableLeftSide PartitionSpec 'CURSOR'
|
|
| AlterTableLeftSide PartitionSpec 'CURSOR'
|
|
@@ -245,8 +245,8 @@ AlterTable_EDIT
|
|
|
'ENABLE NO_DROP', 'ENABLE OFFLINE', 'RENAME TO PARTITION', 'REPLACE COLUMNS', 'SET FILEFORMAT', 'SET LOCATION',
|
|
'ENABLE NO_DROP', 'ENABLE OFFLINE', 'RENAME TO PARTITION', 'REPLACE COLUMNS', 'SET FILEFORMAT', 'SET LOCATION',
|
|
|
'SET SERDE', 'SET SERDEPROPERTIES']);
|
|
'SET SERDE', 'SET SERDEPROPERTIES']);
|
|
|
} else if (parser.isImpala()) {
|
|
} else if (parser.isImpala()) {
|
|
|
- parser.suggestKeywords(['SET CACHED IN', 'SET FILEFORMAT', 'SET LOCATION', 'SET SERDEPROPERTIES', 'SET TBLPROPERTIES',
|
|
|
|
|
- 'SET UNCACHED']);
|
|
|
|
|
|
|
+ parser.suggestKeywords(['SET CACHED IN', 'SET FILEFORMAT', 'SET LOCATION', 'SET ROW FORMAT',
|
|
|
|
|
+ 'SET SERDEPROPERTIES', 'SET TBLPROPERTIES', 'SET UNCACHED']);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
| AlterTableLeftSide PartitionSpec AddOrReplace 'CURSOR'
|
|
| AlterTableLeftSide PartitionSpec AddOrReplace 'CURSOR'
|
|
@@ -258,7 +258,7 @@ AlterTable_EDIT
|
|
|
if (parser.isHive()) {
|
|
if (parser.isHive()) {
|
|
|
parser.suggestKeywords(['FILEFORMAT', 'LOCATION', 'SERDE', 'SERDEPROPERTIES']);
|
|
parser.suggestKeywords(['FILEFORMAT', 'LOCATION', 'SERDE', 'SERDEPROPERTIES']);
|
|
|
} else if (parser.isImpala()) {
|
|
} else if (parser.isImpala()) {
|
|
|
- parser.suggestKeywords(['CACHED IN', 'FILEFORMAT', 'LOCATION', 'SERDEPROPERTIES','TBLPROPERTIES', 'UNCACHED']);
|
|
|
|
|
|
|
+ parser.suggestKeywords(['CACHED IN', 'FILEFORMAT', 'LOCATION', 'ROW FORMAT', 'SERDEPROPERTIES','TBLPROPERTIES', 'UNCACHED']);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
| AlterTableLeftSide 'SET' 'CURSOR'
|
|
| AlterTableLeftSide 'SET' 'CURSOR'
|
|
@@ -266,7 +266,7 @@ AlterTable_EDIT
|
|
|
if (parser.isHive()) {
|
|
if (parser.isHive()) {
|
|
|
parser.suggestKeywords(['FILEFORMAT', 'LOCATION', 'OWNER', 'SERDE', 'SERDEPROPERTIES', 'SKEWED LOCATION', 'TBLPROPERTIES']);
|
|
parser.suggestKeywords(['FILEFORMAT', 'LOCATION', 'OWNER', 'SERDE', 'SERDEPROPERTIES', 'SKEWED LOCATION', 'TBLPROPERTIES']);
|
|
|
} else if (parser.isImpala()) {
|
|
} else if (parser.isImpala()) {
|
|
|
- parser.suggestKeywords(['CACHED IN', 'COLUMN STATS', 'FILEFORMAT', 'LOCATION', 'SERDEPROPERTIES', 'TBLPROPERTIES', 'UNCACHED']);
|
|
|
|
|
|
|
+ parser.suggestKeywords(['CACHED IN', 'COLUMN STATS', 'FILEFORMAT', 'LOCATION', 'ROW FORMAT', 'SERDEPROPERTIES', 'TBLPROPERTIES', 'UNCACHED']);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
| AlterTableLeftSide PartitionSpec OptionalPartitionOperations_EDIT
|
|
| AlterTableLeftSide PartitionSpec OptionalPartitionOperations_EDIT
|
|
@@ -487,6 +487,7 @@ OptionalPartitionOperations
|
|
|
| 'SET' '<hive>SERDE' QuotedValue OptionalWithSerdeproperties
|
|
| 'SET' '<hive>SERDE' QuotedValue OptionalWithSerdeproperties
|
|
|
| 'SET' HiveOrImpalaSerdeproperties ParenthesizedPropertyAssignmentList
|
|
| 'SET' HiveOrImpalaSerdeproperties ParenthesizedPropertyAssignmentList
|
|
|
| 'SET' CachedIn OptionalWithReplication
|
|
| 'SET' CachedIn OptionalWithReplication
|
|
|
|
|
+ | 'SET' 'ROW' '<impala>FORMAT' ImpalaRowFormat
|
|
|
| 'SET' '<impala>UNCACHED'
|
|
| 'SET' '<impala>UNCACHED'
|
|
|
| AddReplaceColumns
|
|
| AddReplaceColumns
|
|
|
| '<hive>CONCATENATE'
|
|
| '<hive>CONCATENATE'
|
|
@@ -558,6 +559,23 @@ OptionalPartitionOperations_EDIT
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
| 'SET' CachedIn WithReplication_EDIT
|
|
| 'SET' CachedIn WithReplication_EDIT
|
|
|
|
|
+ | 'SET' 'ROW' 'CURSOR'
|
|
|
|
|
+ {
|
|
|
|
|
+ if (parser.isImpala()) {
|
|
|
|
|
+ parser.suggestKeywords(['FORMAT']);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ | 'SET' 'ROW' '<impala>FORMAT' 'CURSOR'
|
|
|
|
|
+ {
|
|
|
|
|
+ parser.suggestKeywords(['DELIMITED']);
|
|
|
|
|
+ }
|
|
|
|
|
+ | 'SET' 'ROW' '<impala>FORMAT' ImpalaRowFormat 'CURSOR'
|
|
|
|
|
+ {
|
|
|
|
|
+ if ($4.suggestKeywords) {
|
|
|
|
|
+ parser.suggestKeywords($4.suggestKeywords);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ | 'SET' 'ROW' '<impala>FORMAT' ImpalaRowFormat_EDIT
|
|
|
| 'SET' '<hive>SERDE' QuotedValue OptionalWithSerdeproperties 'CURSOR'
|
|
| 'SET' '<hive>SERDE' QuotedValue OptionalWithSerdeproperties 'CURSOR'
|
|
|
{
|
|
{
|
|
|
if (!$4) {
|
|
if (!$4) {
|