hvanhovell commented on a change in pull request #25569: [SPARK-28863]
Introduce AlreadyPlanned, a node that speeds-up planning
URL: https://github.com/apache/spark/pull/25569#discussion_r317306217
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkStrategies.scala
##########
@@ -632,6 +632,7 @@ abstract class SparkStrategies extends
QueryPlanner[SparkPlan] {
object BasicOperators extends Strategy {
def apply(plan: LogicalPlan): Seq[SparkPlan] = plan match {
+ case AlreadyPlanned(physical, output) => AlreadyPlannedExec(physical,
output) :: Nil
Review comment:
Maybe I am not following completely, but what happens if you return the
physical plan here? Or do you get into trouble with rules that are not exactly
idempotent?
----------------------------------------------------------------
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]