digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n5 ms (0 ms, 0 ms, 1 ms (stage 1310101.0: task 2443984))";
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>1 ms (0 ms, 0 ms, 1 ms (stage 1310101.0: task 2443984))<br>peak memory total (min, med, max (stageId: taskId))<br>9.5 MiB (256.0 KiB, 256.0 KiB, 2.3 MiB (stage 1310101.0: task 2443970))<br>number of output rows: 1<br>number of sort fallback tasks: 0<br>avg hash probes per key: 1" tooltip="HashAggregate(keys=[shardId#4883821], functions=[max(version#4883823)])"];
}
2 [id="node2" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 1<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 1<br>local bytes read: 96.0 B<br>merged fetch fallback count: 0<br>local blocks read: 1<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 40.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: 30<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 96.0 B" tooltip="Exchange hashpartitioning(shardId#4883821, 30), ENSURE_REQUIREMENTS, [plan_id=2852227]"];
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n133 ms (0 ms, 0 ms, 25 ms (stage 1310100.0: task 2443944))";
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>0 ms (0 ms, 0 ms, 0 ms (stage 1310100.0: task 2443951))<br>peak memory total (min, med, max (stageId: taskId))<br>7.5 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 1310100.0: task 2443951))<br>number of output rows: 1<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#4883821], functions=[partial_max(version#4883823)])"];
}
5 [id="node5" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 1" tooltip="InMemoryTableScan [shardId#4883821, version#4883823]"];
6 [id="node6" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 1<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 1<br>local bytes read: 618.0 B<br>merged fetch fallback count: 0<br>local blocks read: 1<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 960.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: 30<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 618.0 B" tooltip="Exchange hashpartitioning(worklistShardItemId#4883822L, 30), REPARTITION_BY_NUM, [plan_id=2852198]"];
subgraph cluster7 {
isCluster="true";
id="cluster7";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n105 ms (0 ms, 1 ms, 17 ms (stage 1310099.0: task 2443922))";
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>3 ms (0 ms, 0 ms, 1 ms (stage 1310099.0: task 2443918))<br>peak memory total (min, med, max (stageId: taskId))<br>9.5 MiB (256.0 KiB, 256.0 KiB, 2.3 MiB (stage 1310099.0: task 2443910))<br>number of output rows: 1<br>number of sort fallback tasks: 0<br>avg hash probes per key: 1" tooltip="HashAggregate(keys=[demandChannel#4883825, shardId#4883821, kpis#4883827, version#4883823, qty#4883824, worklistShardItemId#4883822L, demandStream#4883826], functions=[])"];
}
9 [id="node9" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 1<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 1<br>local bytes read: 609.0 B<br>merged fetch fallback count: 0<br>local blocks read: 1<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 960.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: 30<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 609.0 B" tooltip="Exchange hashpartitioning(demandChannel#4883825, shardId#4883821, kpis#4883827, version#4883823, qty#4883824, worklistShardItemId#4883822L, demandStream#4883826, 30), ENSURE_REQUIREMENTS, [plan_id=2852194]"];
10 [id="node10" labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 151 ms<br>peak memory: 2.3 MiB<br>number of output rows: 1<br>number of sort fallback tasks: 0<br>avg hash probes per key: 1" tooltip="HashAggregate(keys=[demandChannel#4883825, shardId#4883821, knownfloatingpointnormalized(transform(kpis#4883827, lambdafunction(knownfloatingpointnormalized(if (isnull(lambda arg#5497423)) null else named_struct(label, lambda arg#5497423.label, dateTime, lambda arg#5497423.dateTime, value, knownfloatingpointnormalized(normalizenanandzero(lambda arg#5497423.value)))), lambda arg#5497423, false))) AS kpis#4883827, version#4883823, knownfloatingpointnormalized(normalizenanandzero(qty#4883824)) AS qty#4883824, worklistShardItemId#4883822L, demandStream#4883826], functions=[])"];
subgraph cluster11 {
isCluster="true";
id="cluster11";
label="WholeStageCodegen (1)\n \nduration: 151 ms";
tooltip="WholeStageCodegen (1)";
12 [id="node12" labelType="html" label="<b>Scan ExistingRDD</b><br><br>number of output rows: 1" tooltip="Scan ExistingRDD[shardId#4883821,worklistShardItemId#4883822L,version#4883823,qty#4883824,demandChannel#4883825,demandStream#4883826,kpis#4883827]"];
}
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#4883821, version#4883823]
Arguments: [shardId#4883821, version#4883823]
(2) InMemoryRelation
Arguments: [shardId#4883821, worklistShardItemId#4883822L, version#4883823, qty#4883824, demandChannel#4883825, demandStream#4883826, kpis#4883827], StorageLevel(disk, memory, 2 replicas)
(3) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#4883821, worklistShardItemId#4883822L, version#4883823, qty#4883824, demandChannel#4883825, demandStream#4883826, kpis#4883827]
Arguments: [shardId#4883821, worklistShardItemId#4883822L, version#4883823, qty#4883824, demandChannel#4883825, demandStream#4883826, kpis#4883827], SQLExecutionRDD[387242] at start at FileStorageAdapterImpl.java:598, ExistingRDD, UnknownPartitioning(0)
(4) HashAggregate
Input [7]: [shardId#4883821, worklistShardItemId#4883822L, version#4883823, qty#4883824, demandChannel#4883825, demandStream#4883826, kpis#4883827]
Keys [7]: [demandChannel#4883825, shardId#4883821, knownfloatingpointnormalized(transform(kpis#4883827, lambdafunction(knownfloatingpointnormalized(if (isnull(lambda arg#5497423)) null else named_struct(label, lambda arg#5497423.label, dateTime, lambda arg#5497423.dateTime, value, knownfloatingpointnormalized(normalizenanandzero(lambda arg#5497423.value)))), lambda arg#5497423, false))) AS kpis#4883827, version#4883823, knownfloatingpointnormalized(normalizenanandzero(qty#4883824)) AS qty#4883824, worklistShardItemId#4883822L, demandStream#4883826]
Functions: []
Aggregate Attributes: []
Results [7]: [demandChannel#4883825, shardId#4883821, kpis#4883827, version#4883823, qty#4883824, worklistShardItemId#4883822L, demandStream#4883826]
(5) Exchange
Input [7]: [demandChannel#4883825, shardId#4883821, kpis#4883827, version#4883823, qty#4883824, worklistShardItemId#4883822L, demandStream#4883826]
Arguments: hashpartitioning(demandChannel#4883825, shardId#4883821, kpis#4883827, version#4883823, qty#4883824, worklistShardItemId#4883822L, demandStream#4883826, 30), ENSURE_REQUIREMENTS, [plan_id=2852194]
(6) HashAggregate [codegen id : 2]
Input [7]: [demandChannel#4883825, shardId#4883821, kpis#4883827, version#4883823, qty#4883824, worklistShardItemId#4883822L, demandStream#4883826]
Keys [7]: [demandChannel#4883825, shardId#4883821, kpis#4883827, version#4883823, qty#4883824, worklistShardItemId#4883822L, demandStream#4883826]
Functions: []
Aggregate Attributes: []
Results [7]: [shardId#4883821, worklistShardItemId#4883822L, version#4883823, qty#4883824, demandChannel#4883825, demandStream#4883826, kpis#4883827]
(7) Exchange
Input [7]: [shardId#4883821, worklistShardItemId#4883822L, version#4883823, qty#4883824, demandChannel#4883825, demandStream#4883826, kpis#4883827]
Arguments: hashpartitioning(worklistShardItemId#4883822L, 30), REPARTITION_BY_NUM, [plan_id=2852198]
(8) HashAggregate [codegen id : 1]
Input [2]: [shardId#4883821, version#4883823]
Keys [1]: [shardId#4883821]
Functions [1]: [partial_max(version#4883823)]
Aggregate Attributes [1]: [max#5497568]
Results [2]: [shardId#4883821, max#5497569]
(9) Exchange
Input [2]: [shardId#4883821, max#5497569]
Arguments: hashpartitioning(shardId#4883821, 30), ENSURE_REQUIREMENTS, [plan_id=2852227]
(10) HashAggregate [codegen id : 2]
Input [2]: [shardId#4883821, max#5497569]
Keys [1]: [shardId#4883821]
Functions [1]: [max(version#4883823)]
Aggregate Attributes [1]: [max(version#4883823)#5497462]
Results [2]: [shardId#4883821, max(version#4883823)#5497462 AS version#5497459]