support insert overwrite values syntax

This commit is contained in:
HSunboy
2018-12-29 11:47:29 +08:00
parent 7096f4be00
commit 8b082f3e85
3 changed files with 130 additions and 125 deletions

View File

@ -267,6 +267,11 @@ InsertValuesStatement
$4.owner = 'insert';
parser.addTablePrimary($4);
}
| '<hive>INSERT' '<hive>OVERWRITE' OptionalHiveTable SchemaQualifiedTableIdentifier OptionalPartitionSpec 'VALUES' InsertValuesList
{
$4.owner = 'insert';
parser.addTablePrimary($4);
}
| 'INSERT' 'INTO' OptionalTable SchemaQualifiedTableIdentifier 'VALUES' InsertValuesList
{
$4.owner = 'insert';