fix syntax

This commit is contained in:
HSunboy 2018-09-01 15:40:51 +08:00
parent 07418632f4
commit 8e4e183b22
4 changed files with 582 additions and 579 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -27,7 +27,7 @@ cat autocomplete_header.jison sql_main.jison sql_valueExpression.jison sql_error
echo "Creating SQL autocomplete parser..."
jison sqlAutocompleteParser.jison sql.jisonlex
grunt uglify:sqlAutocompleteParser
# grunt uglify:sqlAutocompleteParser
cat sqlParseSupport.js sqlAutocompleteParser.js > ../core/sqlAutoCompleteParser.js
rm sqlAutocompleteParser.jison
rm sqlAutocompleteParser.js

View File

@ -189,8 +189,6 @@ TableDefinitionRightPart_EDIT
OptionalStoredAsOrBy OptionalHdfsLocation OptionalTblproperties OptionalCachedInOrUncached OptionalAsSelectStatement
| TableIdentifierAndOptionalColumnSpecification OptionalComment OptionalPartitionedBy OptionalSortBy OptionalClusteredBy OptionalSkewedBy
StoredAsOrBy_EDIT OptionalHdfsLocation OptionalTblproperties OptionalCachedInOrUncached OptionalAsSelectStatement
| TableIdentifierAndOptionalColumnSpecification OptionalComment OptionalPartitionedBy OptionalSortBy OptionalClusteredBy OptionalSkewedBy
OptionalStoredAsOrBy WithSerdeproperties_EDIT OptionalHdfsLocation OptionalTblproperties OptionalCachedInOrUncached OptionalAsSelectStatement
| TableIdentifierAndOptionalColumnSpecification OptionalComment OptionalPartitionedBy OptionalSortBy OptionalClusteredBy OptionalSkewedBy
OptionalStoredAsOrBy HdfsLocation_EDIT OptionalTblproperties OptionalCachedInOrUncached OptionalAsSelectStatement
| TableIdentifierAndOptionalColumnSpecification OptionalComment OptionalPartitionedBy OptionalSortBy OptionalClusteredBy OptionalSkewedBy
@ -1005,7 +1003,11 @@ StoredAsOrBy
{
$$ = parser.mergeSuggestKeywords($3, $4)
}
| '<hive>STORED' 'BY' QuotedValue OptionalWithSerdeproperties
| '<hive>STORED' 'BY' QuotedValue OptionalWithSerdeproperties
{
$$ = { storedBy: true }
}
| '<hive>STORED' 'BY' QuotedValue WithSerdeproperties_EDIT
{
$$ = { storedBy: true }
}
@ -1087,6 +1089,7 @@ HiveOrImpalaRowFormat_EDIT
HiveRowFormat
: HiveDelimitedRowFormat
| '<hive>SERDE' QuotedValue OptionalWithSerdeproperties
| '<hive>SERDE' QuotedValue WithSerdeproperties_EDIT
;
HiveRowFormat_EDIT