cloud-fan commented on a change in pull request #24348: [SPARK-27444][SQL]
multi-select can be used in subquery
URL: https://github.com/apache/spark/pull/24348#discussion_r274500124
##########
File path:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
##########
@@ -356,14 +355,14 @@ resource
: identifier STRING
;
-insertStatement
- : (ctes)? insertInto queryTerm queryOrganization
#singleInsertQuery
- | (ctes)? fromClause multiInsertQueryBody+
#multiInsertQuery
+dmlStatementNoWith
+ : insertInto queryTerm queryOrganization
#singleInsertQuery
+ | fromClause multiInsertQueryBody+
#multiInsertQuery
;
queryNoWith
: queryTerm queryOrganization
#noWithQuery
- | fromClause selectStatement
#queryWithFrom
+ | fromClause selectStatement+
#queryWithFrom
Review comment:
well, multi-select is still one query :)
----------------------------------------------------------------
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]