brkyvz 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_r317311235
 
 

 ##########
 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:
   You still go through the entire join planning, Adaptive query planning and 
much more. We also may need to add projections to rewrite expression ids in 
case the plan was re-used in joins, etc

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