allisonwang-db opened a new pull request #29137:
URL: https://github.com/apache/spark/pull/29137
### What changes were proposed in this pull request?
This PR adds initial plan in `AdaptiveSparkPlanExec` and generates tree
string for both current plan and initial plan. For example:
#### Current AQE plan tree string
```
AdaptiveSparkPlan isFinalPlan=true
+- *(3) BroadcastHashJoin
:- BroadcastQueryStage 2
...
```
#### After this change
```
AdaptiveSparkPlan isFinalPlan=true
:- CurrentPlan
: +- *(3) BroadcastHashJoin
: :- BroadcastQueryStage 2
: : ...
+- InitialPlan
+- SortMergeJoin
:- Sort
...
```
### Why are the changes needed?
It provides better visibility into the plan change introduced by AQE.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
----------------------------------------------------------------
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]