yeshengm commented on a change in pull request #24809: [SPARK-21136][SQL] Fix 
confusing parsing error due to problematic antlr grammer for Hive-style 
single-from statements
URL: https://github.com/apache/spark/pull/24809#discussion_r291372586
 
 

 ##########
 File path: 
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
 ##########
 @@ -411,6 +406,7 @@ queryTerm
 
 queryPrimary
     : querySpecification                                                    
#queryPrimaryDefault
+    | fromStatement                                                         
#fromStmt
 
 Review comment:
   According to Hive compatibility test, `fromStatement` should be in the same 
level as queries such as `SELECT * FROM table`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to