vladimirg-db commented on code in PR #49835:
URL: https://github.com/apache/spark/pull/49835#discussion_r1946169495


##########
sql/api/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBaseParser.g4:
##########
@@ -476,6 +476,10 @@ commentSpec
     : COMMENT stringLit
     ;
 
+singleQuery
+    : query EOF

Review Comment:
   It's still confusing to me how is `SELECT 1 WHERE true` is parsed as 
`Filter` on top of a `Project` and `SELECT 1 UNION SELECT 2` is parsed as a 
`Project` with `UNION` as alias name.



-- 
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.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to