Commit 48940be
[SPARK-55877][UI] Side-by-side Initial vs Final plan comparison for AQE queries
### What changes were proposed in this pull request?
Add a side-by-side comparison view for AQE plan evolution on the SQL execution detail page.
When AQE rewrites a query plan, the Plan Details section now shows a **Unified | Split** toggle:
- **Unified** (default): full plan text as before
- **Split**: two columns showing Initial Plan (left) vs Final Plan (right)
For non-AQE queries (where initial == final), the raw text is shown directly without the toggle.
### Why are the changes needed?
Understanding how AQE rewrites a plan is important for query performance analysis. Currently the plan text mixes both versions in a single block, making it hard to compare. The split view makes differences immediately visible (e.g., added ShuffleQueryStage, AQEShuffleRead coalescing, statistics).
### Does this PR introduce _any_ user-facing change?
Yes — Plan Details section on the SQL execution page now shows a Unified/Split toggle when AQE has rewritten the plan.
### How was this patch tested?
Compilation verified. Manual testing with AQE-enabled queries.
### Was this patch authored or co-authored using generative AI tooling?
Yes, co-authored with GitHub Copilot.
Closes #54806 from yaooqinn/SPARK-55877.
Authored-by: Kent Yao <kentyao@microsoft.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>1 parent 7eef6f7 commit 48940be
1 file changed
Lines changed: 75 additions & 5 deletions
Lines changed: 75 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
196 | 200 | | |
197 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
198 | 205 | | |
199 | | - | |
| 206 | + | |
200 | 207 | | |
201 | 208 | | |
202 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
203 | 245 | | |
204 | | - | |
205 | | - | |
206 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
207 | 277 | | |
208 | 278 | | |
209 | 279 | | |
| |||
0 commit comments