carsonwang commented on issue #20303: [SPARK-23128][SQL] A new approach to do 
adaptive execution in Spark SQL
URL: https://github.com/apache/spark/pull/20303#issuecomment-453036020
 
 
   @cloud-fan , we don't apply whole stage codegen to query stages recursively. 
 In `QueryStage.prepareExecuteStage`, we first execute child stages and wait 
for their completions. Based on the child stage statistics, we can potentially 
update the plan and reducer number in current query stage.  After that, we do a 
whole stage codegen only to the plan in the current query stage. Note, the 
QueryStageInput is a leaf node so the whole stage codegen won't apply to child 
stages.

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