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

File diff suppressed because one or more lines are too long

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';

View File

@ -1,6 +1,6 @@
{
"name": "dt-sql-parser",
"version": "1.1.9",
"version": "1.1.10",
"description": "sql,hive,parser ",
"keywords":["hive","hql","sql","parser"],
"main": "index.js",