You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by hv...@apache.org on 2016/02/11 21:10:01 UTC

spark git commit: [SPARK-13277][SQL] ANTLR ignores other rule using the USING keyword

Repository: spark
Updated Branches:
  refs/heads/master 219a74a7c -> e31c80737


[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 <vi...@gmail.com>

Closes #11168 from viirya/fix-parser-using.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/e31c8073
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/e31c8073
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/e31c8073

Branch: refs/heads/master
Commit: e31c80737b7f4d8baa02230788e3963433cb3ef9
Parents: 219a74a
Author: Liang-Chi Hsieh <vi...@gmail.com>
Authored: Thu Feb 11 21:09:44 2016 +0100
Committer: Herman van Hovell <hv...@questtec.nl>
Committed: Thu Feb 11 21:09:44 2016 +0100

----------------------------------------------------------------------
 .../antlr3/org/apache/spark/sql/catalyst/parser/SparkSqlParser.g   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/e31c8073/sql/catalyst/src/main/antlr3/org/apache/spark/sql/catalyst/parser/SparkSqlParser.g
----------------------------------------------------------------------
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 24483cc..e1908a8 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?


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org