viirya commented on a change in pull request #32513:
URL: https://github.com/apache/spark/pull/32513#discussion_r637364885
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/QueryExecution.scala
##########
@@ -74,12 +75,26 @@ class QueryExecution(
sparkSession.sessionState.analyzer.executeAndCheck(logical, tracker)
}
+ lazy val nonRootCommandExecuted: LogicalPlan = analyzed mapChildren { child
=>
+ child transformDown {
+ // SPARK-35378: Eagerly execute non-root Command
+ case c: Command =>
+ val qe = sparkSession.sessionState.executePlan(c)
+ CommandResult(
+ qe.nonRootCommandExecuted.output,
+ qe.nonRootCommandExecuted,
Review comment:
Can `Command` contain other `Command`? Otherwise, can we just use
`qe.analyzed.output` here?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]