digraph G {
0 [id="node0" labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>" tooltip="AdaptiveSparkPlan isFinalPlan=true"];
subgraph cluster1 {
isCluster="true";
id="cluster1";
label="WholeStageCodegen (3)\n \nduration: 6 ms";
tooltip="WholeStageCodegen (3)";
2 [id="node2" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 1 ms<br>peak memory: 256.0 KiB<br>number of output rows: 2<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[plant#913881], functions=[])"];
}
3 [id="node3" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 702.0 B<br>number of coalesced partitions: 1" tooltip="AQEShuffleRead coalesced"];
4 [id="node4" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 6<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 6<br>local bytes read: 648.0 B<br>merged fetch fallback count: 0<br>local blocks read: 6<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>288.0 B (48.0 B, 48.0 B, 48.0 B (stage 76359.0: task 186450))<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>3 ms (0 ms, 0 ms, 0 ms (stage 76359.0: task 186452))<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time: 0 ms<br>remote bytes read: 0.0 B<br>number of partitions: 25<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>648.0 B (108.0 B, 108.0 B, 108.0 B (stage 76359.0: task 186450))" tooltip="Exchange hashpartitioning(plant#913881, 25), ENSURE_REQUIREMENTS, [plan_id=357674]"];
subgraph cluster5 {
isCluster="true";
id="cluster5";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n827 ms (0 ms, 0 ms, 84 ms (stage 76359.0: task 186457))";
tooltip="WholeStageCodegen (2)";
6 [id="node6" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build total (min, med, max (stageId: taskId))<br>8 ms (0 ms, 0 ms, 1 ms (stage 76359.0: task 186450))<br>peak memory total (min, med, max (stageId: taskId))<br>6.3 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 76359.0: task 186450))<br>number of output rows: 6<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[plant#913881], functions=[])"];
7 [id="node7" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#913881]"];
}
8 [id="node8" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 24<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 24<br>local bytes read total (min, med, max (stageId: taskId))<br>1002.0 B (153.0 B, 153.0 B, 196.0 B (stage 76359.0: task 186452))<br>merged fetch fallback count: 0<br>local blocks read: 6<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 2.1 KiB<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time: 0 ms<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 76359.0: task 186450))<br>remote bytes read: 0.0 B<br>number of partitions: 25<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 1002.0 B" tooltip="Exchange hashpartitioning(product#913886, plant#913881, 25), REPARTITION_BY_NUM, [plan_id=357642]"];
subgraph cluster9 {
isCluster="true";
id="cluster9";
label="WholeStageCodegen (1)\n \nduration: 122 ms";
tooltip="WholeStageCodegen (1)";
10 [id="node10" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 24<br>number of input batches: 1" tooltip="ColumnarToRow"];
}
11 [id="node11" labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 1<br>scan time: 90 ms<br>metadata time: 0 ms<br>size of files read: 9.9 KiB<br>number of output rows: 24" tooltip="FileScan parquet [plant#913881,product#913886] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanac..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<plant:string,product:string>"];
2->0;
3->2;
4->3;
6->4;
7->6;
8->7;
10->8;
11->10;
}
== Physical Plan ==
AdaptiveSparkPlan (17)
+- == Final Plan ==
ResultQueryStage (11), Statistics(sizeInBytes=8.0 EiB)
+- * HashAggregate (10)
+- AQEShuffleRead (9)
+- ShuffleQueryStage (8), Statistics(sizeInBytes=288.0 B, rowCount=6)
+- Exchange (7)
+- * HashAggregate (6)
+- * Project (5)
+- ShuffleQueryStage (4), Statistics(sizeInBytes=2.1 KiB, rowCount=24)
+- Exchange (3)
+- * ColumnarToRow (2)
+- Scan parquet (1)
+- == Initial Plan ==
HashAggregate (16)
+- Exchange (15)
+- HashAggregate (14)
+- Project (13)
+- Exchange (12)
+- Scan parquet (1)
(1) Scan parquet
Output [2]: [plant#913881, product#913886]
Batched: true
Location: InMemoryFileIndex [hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/out/order-proposal-boundary-snapshot/10000002110/shardId=0_1_10000002110]
ReadSchema: struct<plant:string,product:string>
(2) ColumnarToRow [codegen id : 1]
Input [2]: [plant#913881, product#913886]
(3) Exchange
Input [2]: [plant#913881, product#913886]
Arguments: hashpartitioning(product#913886, plant#913881, 25), REPARTITION_BY_NUM, [plan_id=357642]
(4) ShuffleQueryStage
Output [2]: [plant#913881, product#913886]
Arguments: 0
(5) Project [codegen id : 2]
Output [1]: [plant#913881]
Input [2]: [plant#913881, product#913886]
(6) HashAggregate [codegen id : 2]
Input [1]: [plant#913881]
Keys [1]: [plant#913881]
Functions: []
Aggregate Attributes: []
Results [1]: [plant#913881]
(7) Exchange
Input [1]: [plant#913881]
Arguments: hashpartitioning(plant#913881, 25), ENSURE_REQUIREMENTS, [plan_id=357674]
(8) ShuffleQueryStage
Output [1]: [plant#913881]
Arguments: 1
(9) AQEShuffleRead
Input [1]: [plant#913881]
Arguments: coalesced
(10) HashAggregate [codegen id : 3]
Input [1]: [plant#913881]
Keys [1]: [plant#913881]
Functions: []
Aggregate Attributes: []
Results [1]: [plant#913881]
(11) ResultQueryStage
Output [1]: [plant#913881]
Arguments: 2
(12) Exchange
Input [2]: [plant#913881, product#913886]
Arguments: hashpartitioning(product#913886, plant#913881, 25), REPARTITION_BY_NUM, [plan_id=357621]
(13) Project
Output [1]: [plant#913881]
Input [2]: [plant#913881, product#913886]
(14) HashAggregate
Input [1]: [plant#913881]
Keys [1]: [plant#913881]
Functions: []
Aggregate Attributes: []
Results [1]: [plant#913881]
(15) Exchange
Input [1]: [plant#913881]
Arguments: hashpartitioning(plant#913881, 25), ENSURE_REQUIREMENTS, [plan_id=357626]
(16) HashAggregate
Input [1]: [plant#913881]
Keys [1]: [plant#913881]
Functions: []
Aggregate Attributes: []
Results [1]: [plant#913881]
(17) AdaptiveSparkPlan
Output [1]: [plant#913881]
Arguments: isFinalPlan=true