Skip to content

Commit

Permalink
[SPARK-13277][SQL] ANTLR ignores other rule using the USING keyword
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
viirya authored and hvanhovell committed Feb 11, 2016
1 parent 219a74a commit e31c807
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ createTableStatement
tablePropertiesPrefixed?
)
|
tableProvider
(tableProvider) => tableProvider
tableOpts?
(KW_AS selectStatementWithCTE)?
-> ^(TOK_CREATETABLEUSING $name $temp? ifNotExists?
Expand Down

0 comments on commit e31c807

Please sign in to comment.