digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n20 ms (0 ms, 2 ms, 2 ms (stage 76327.0: task 186327))";
tooltip="WholeStageCodegen (2)";
1 [id="node1" 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>3 ms (0 ms, 0 ms, 1 ms (stage 76327.0: task 186323))<br>peak memory total (min, med, max (stageId: taskId))<br>5.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 76327.0: task 186327))<br>number of output rows: 0<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#912737], functions=[max(version#912739)])"];
}
2 [id="node2" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 0<br>local bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 0<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 0.0 B<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: 0 ms<br>remote bytes read: 0.0 B<br>number of partitions: 20<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 0.0 B" tooltip="Exchange hashpartitioning(shardId#912737, 20), ENSURE_REQUIREMENTS, [plan_id=356808]"];
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n993 ms (0 ms, 95 ms, 104 ms (stage 76326.0: task 186305))";
tooltip="WholeStageCodegen (1)";
4 [id="node4" 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>9 ms (0 ms, 0 ms, 1 ms (stage 76326.0: task 186304))<br>peak memory total (min, med, max (stageId: taskId))<br>5.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 76326.0: task 186304))<br>number of output rows: 0<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#912737], functions=[partial_max(version#912739)])"];
}
5 [id="node5" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#912737, version#912739]"];
6 [id="node6" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 0<br>local bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 0<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 0.0 B<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: 0 ms<br>remote bytes read: 0.0 B<br>number of partitions: 20<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 0.0 B" tooltip="Exchange hashpartitioning(worklistShardItemId#912738L, 20), REPARTITION_BY_NUM, [plan_id=356779]"];
subgraph cluster7 {
isCluster="true";
id="cluster7";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n1.0 s (0 ms, 73 ms, 128 ms (stage 76325.0: task 186284))";
tooltip="WholeStageCodegen (2)";
8 [id="node8" 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>4 ms (0 ms, 0 ms, 2 ms (stage 76325.0: task 186286))<br>peak memory total (min, med, max (stageId: taskId))<br>5.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 76325.0: task 186285))<br>number of output rows: 0<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[demandChannel#912741, shardId#912737, kpis#912743, version#912739, qty#912740, worklistShardItemId#912738L, demandStream#912742], functions=[])"];
}
9 [id="node9" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 0<br>local bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 0<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 0.0 B<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: 0 ms<br>remote bytes read: 0.0 B<br>number of partitions: 20<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 0.0 B" tooltip="Exchange hashpartitioning(demandChannel#912741, shardId#912737, kpis#912743, version#912739, qty#912740, worklistShardItemId#912738L, demandStream#912742, 20), ENSURE_REQUIREMENTS, [plan_id=356775]"];
10 [id="node10" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 0 ms<br>peak memory: 0.0 B<br>number of output rows: 0<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[demandChannel#912741, shardId#912737, knownfloatingpointnormalized(transform(kpis#912743, lambdafunction(knownfloatingpointnormalized(if (isnull(lambda arg#913138)) null else named_struct(label, lambda arg#913138.label, dateTime, lambda arg#913138.dateTime, value, knownfloatingpointnormalized(normalizenanandzero(lambda arg#913138.value)))), lambda arg#913138, false))) AS kpis#912743, version#912739, knownfloatingpointnormalized(normalizenanandzero(qty#912740)) AS qty#912740, worklistShardItemId#912738L, demandStream#912742], functions=[])"];
subgraph cluster11 {
isCluster="true";
id="cluster11";
label="WholeStageCodegen (1)\n \nduration: 0 ms";
tooltip="WholeStageCodegen (1)";
12 [id="node12" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 0" tooltip="Scan ExistingRDD[shardId#912737,worklistShardItemId#912738L,version#912739,qty#912740,demandChannel#912741,demandStream#912742,kpis#912743]"];
}
2->1;
4->2;
5->4;
6->5;
8->6;
9->8;
10->9;
12->10;
}
== Physical Plan ==
* HashAggregate (10)
+- Exchange (9)
+- * HashAggregate (8)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- Exchange (7)
+- * HashAggregate (6)
+- Exchange (5)
+- HashAggregate (4)
+- * Scan ExistingRDD (3)
(1) InMemoryTableScan
Output [2]: [shardId#912737, version#912739]
Arguments: [shardId#912737, version#912739]
(2) InMemoryRelation
Arguments: [shardId#912737, worklistShardItemId#912738L, version#912739, qty#912740, demandChannel#912741, demandStream#912742, kpis#912743], StorageLevel(disk, memory, 2 replicas)
(3) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#912737, worklistShardItemId#912738L, version#912739, qty#912740, demandChannel#912741, demandStream#912742, kpis#912743]
Arguments: [shardId#912737, worklistShardItemId#912738L, version#912739, qty#912740, demandChannel#912741, demandStream#912742, kpis#912743], SQLExecutionRDD[42820] at start at FileStorageAdapterImpl.java:592, ExistingRDD, UnknownPartitioning(0)
(4) HashAggregate
Input [7]: [shardId#912737, worklistShardItemId#912738L, version#912739, qty#912740, demandChannel#912741, demandStream#912742, kpis#912743]
Keys [7]: [demandChannel#912741, shardId#912737, knownfloatingpointnormalized(transform(kpis#912743, lambdafunction(knownfloatingpointnormalized(if (isnull(lambda arg#913138)) null else named_struct(label, lambda arg#913138.label, dateTime, lambda arg#913138.dateTime, value, knownfloatingpointnormalized(normalizenanandzero(lambda arg#913138.value)))), lambda arg#913138, false))) AS kpis#912743, version#912739, knownfloatingpointnormalized(normalizenanandzero(qty#912740)) AS qty#912740, worklistShardItemId#912738L, demandStream#912742]
Functions: []
Aggregate Attributes: []
Results [7]: [demandChannel#912741, shardId#912737, kpis#912743, version#912739, qty#912740, worklistShardItemId#912738L, demandStream#912742]
(5) Exchange
Input [7]: [demandChannel#912741, shardId#912737, kpis#912743, version#912739, qty#912740, worklistShardItemId#912738L, demandStream#912742]
Arguments: hashpartitioning(demandChannel#912741, shardId#912737, kpis#912743, version#912739, qty#912740, worklistShardItemId#912738L, demandStream#912742, 20), ENSURE_REQUIREMENTS, [plan_id=356775]
(6) HashAggregate [codegen id : 2]
Input [7]: [demandChannel#912741, shardId#912737, kpis#912743, version#912739, qty#912740, worklistShardItemId#912738L, demandStream#912742]
Keys [7]: [demandChannel#912741, shardId#912737, kpis#912743, version#912739, qty#912740, worklistShardItemId#912738L, demandStream#912742]
Functions: []
Aggregate Attributes: []
Results [7]: [shardId#912737, worklistShardItemId#912738L, version#912739, qty#912740, demandChannel#912741, demandStream#912742, kpis#912743]
(7) Exchange
Input [7]: [shardId#912737, worklistShardItemId#912738L, version#912739, qty#912740, demandChannel#912741, demandStream#912742, kpis#912743]
Arguments: hashpartitioning(worklistShardItemId#912738L, 20), REPARTITION_BY_NUM, [plan_id=356779]
(8) HashAggregate [codegen id : 1]
Input [2]: [shardId#912737, version#912739]
Keys [1]: [shardId#912737]
Functions [1]: [partial_max(version#912739)]
Aggregate Attributes [1]: [max#913283]
Results [2]: [shardId#912737, max#913284]
(9) Exchange
Input [2]: [shardId#912737, max#913284]
Arguments: hashpartitioning(shardId#912737, 20), ENSURE_REQUIREMENTS, [plan_id=356808]
(10) HashAggregate [codegen id : 2]
Input [2]: [shardId#912737, max#913284]
Keys [1]: [shardId#912737]
Functions [1]: [max(version#912739)]
Aggregate Attributes [1]: [max(version#912739)#913177]
Results [2]: [shardId#912737, max(version#912739)#913177 AS version#913174]