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: 8 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: 3 ms<br>peak memory: 256.0 KiB<br>number of output rows: 4<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[plant#1000972], functions=[])"];
}
3 [id="node3" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 3.5 KiB<br>number of coalesced partitions: 1" tooltip="AQEShuffleRead coalesced"];
4 [id="node4" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 31<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 31<br>local bytes read: 3.2 KiB<br>merged fetch fallback count: 0<br>local blocks read: 30<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>1488.0 B (48.0 B, 96.0 B, 144.0 B (stage 84402.0: task 202550))<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>8 ms (0 ms, 0 ms, 0 ms (stage 84402.0: task 202542))<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>3.2 KiB (108.0 B, 144.0 B, 324.0 B (stage 84402.0: task 202550))" tooltip="Exchange hashpartitioning(plant#1000972, 25), ENSURE_REQUIREMENTS, [plan_id=389816]"];
subgraph cluster5 {
isCluster="true";
id="cluster5";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n850 ms (1 ms, 1 ms, 86 ms (stage 84402.0: task 202543))";
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>7 ms (0 ms, 0 ms, 2 ms (stage 84402.0: task 202544))<br>peak memory total (min, med, max (stageId: taskId))<br>6.3 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 84402.0: task 202549))<br>number of output rows: 31<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[plant#1000972], functions=[])"];
7 [id="node7" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#1000972]"];
}
8 [id="node8" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 170<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 170<br>local bytes read total (min, med, max (stageId: taskId))<br>3.9 KiB (154.0 B, 228.0 B, 270.0 B (stage 84402.0: task 202550))<br>merged fetch fallback count: 0<br>local blocks read: 20<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 14.6 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 84402.0: task 202543))<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: 3.9 KiB" tooltip="Exchange hashpartitioning(product#1000977, plant#1000972, 25), REPARTITION_BY_NUM, [plan_id=389784]"];
subgraph cluster9 {
isCluster="true";
id="cluster9";
label="WholeStageCodegen (1)\n \nduration: 130 ms";
tooltip="WholeStageCodegen (1)";
10 [id="node10" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 170<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: 93 ms<br>metadata time: 0 ms<br>size of files read: 12.5 KiB<br>number of output rows: 170" tooltip="FileScan parquet [plant#1000972,product#1000977] 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=1488.0 B, rowCount=31)
+- Exchange (7)
+- * HashAggregate (6)
+- * Project (5)
+- ShuffleQueryStage (4), Statistics(sizeInBytes=14.6 KiB, rowCount=170)
+- 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#1000972, product#1000977]
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/10000002111/shardId=0_1_10000002111]
ReadSchema: struct<plant:string,product:string>
(2) ColumnarToRow [codegen id : 1]
Input [2]: [plant#1000972, product#1000977]
(3) Exchange
Input [2]: [plant#1000972, product#1000977]
Arguments: hashpartitioning(product#1000977, plant#1000972, 25), REPARTITION_BY_NUM, [plan_id=389784]
(4) ShuffleQueryStage
Output [2]: [plant#1000972, product#1000977]
Arguments: 0
(5) Project [codegen id : 2]
Output [1]: [plant#1000972]
Input [2]: [plant#1000972, product#1000977]
(6) HashAggregate [codegen id : 2]
Input [1]: [plant#1000972]
Keys [1]: [plant#1000972]
Functions: []
Aggregate Attributes: []
Results [1]: [plant#1000972]
(7) Exchange
Input [1]: [plant#1000972]
Arguments: hashpartitioning(plant#1000972, 25), ENSURE_REQUIREMENTS, [plan_id=389816]
(8) ShuffleQueryStage
Output [1]: [plant#1000972]
Arguments: 1
(9) AQEShuffleRead
Input [1]: [plant#1000972]
Arguments: coalesced
(10) HashAggregate [codegen id : 3]
Input [1]: [plant#1000972]
Keys [1]: [plant#1000972]
Functions: []
Aggregate Attributes: []
Results [1]: [plant#1000972]
(11) ResultQueryStage
Output [1]: [plant#1000972]
Arguments: 2
(12) Exchange
Input [2]: [plant#1000972, product#1000977]
Arguments: hashpartitioning(product#1000977, plant#1000972, 25), REPARTITION_BY_NUM, [plan_id=389763]
(13) Project
Output [1]: [plant#1000972]
Input [2]: [plant#1000972, product#1000977]
(14) HashAggregate
Input [1]: [plant#1000972]
Keys [1]: [plant#1000972]
Functions: []
Aggregate Attributes: []
Results [1]: [plant#1000972]
(15) Exchange
Input [1]: [plant#1000972]
Arguments: hashpartitioning(plant#1000972, 25), ENSURE_REQUIREMENTS, [plan_id=389768]
(16) HashAggregate
Input [1]: [plant#1000972]
Keys [1]: [plant#1000972]
Functions: []
Aggregate Attributes: []
Results [1]: [plant#1000972]
(17) AdaptiveSparkPlan
Output [1]: [plant#1000972]
Arguments: isFinalPlan=true