diff options
author | Liang-Chi Hsieh <viirya@gmail.com> | 2016-02-11 21:09:44 +0100 |
---|---|---|
committer | Herman van Hovell <hvanhovell@questtec.nl> | 2016-02-11 21:09:44 +0100 |
commit | e31c80737b7f4d8baa02230788e3963433cb3ef9 (patch) | |
tree | f544c268079b0a75fc2803d7546772da987b6497 /sql/catalyst | |
parent | 219a74a7c2d3b858224c4738190ccc92d7cbf06d (diff) | |
download | spark-e31c80737b7f4d8baa02230788e3963433cb3ef9.tar.gz spark-e31c80737b7f4d8baa02230788e3963433cb3ef9.tar.bz2 spark-e31c80737b7f4d8baa02230788e3963433cb3ef9.zip |
[SPARK-13277][SQL] ANTLR ignores other rule using the USING keyword
JIRA: https://issues.apache.org/jira/browse/SPARK-13277
There is an ANTLR warning during compilation:
warning(200): org/apache/spark/sql/catalyst/parser/SparkSqlParser.g:938:7:
Decision can match input such as "KW_USING Identifier" using multiple alternatives: 2, 3
As a result, alternative(s) 3 were disabled for that input
This patch is to fix it.
Author: Liang-Chi Hsieh <viirya@gmail.com>
Closes #11168 from viirya/fix-parser-using.
Diffstat (limited to 'sql/catalyst')
-rw-r--r-- | sql/catalyst/src/main/antlr3/org/apache/spark/sql/catalyst/parser/SparkSqlParser.g | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/catalyst/src/main/antlr3/org/apache/spark/sql/catalyst/parser/SparkSqlParser.g b/sql/catalyst/src/main/antlr3/org/apache/spark/sql/catalyst/parser/SparkSqlParser.g index 24483ccb5d..e1908a8e03 100644 --- a/sql/catalyst/src/main/antlr3/org/apache/spark/sql/catalyst/parser/SparkSqlParser.g +++ b/sql/catalyst/src/main/antlr3/org/apache/spark/sql/catalyst/parser/SparkSqlParser.g @@ -949,7 +949,7 @@ createTableStatement tablePropertiesPrefixed? ) | - tableProvider + (tableProvider) => tableProvider tableOpts? (KW_AS selectStatementWithCTE)? -> ^(TOK_CREATETABLEUSING $name $temp? ifNotExists? |