peter-toth commented on a change in pull request #23531: [SPARK-24497][SQL] 
Support recursive SQL query
URL: https://github.com/apache/spark/pull/23531#discussion_r248281752
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala
 ##########
 @@ -192,12 +192,17 @@ abstract class SparkPlan extends QueryPlan[SparkPlan] 
with Logging with Serializ
    */
   private var prepared = false
 
+  /**
+  * Don't prepare these children when preparing parent.
+  */
+  def doNotPrepareInAdvance: Seq[SparkPlan] = Nil
 
 Review comment:
   Yes, we do.
   If the `RecursiveTable` contains a `BroadcastExchangeExec` in the recursive 
term for example, it can't be prepared until the anchor term is computed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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