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 61567.0: task 151523))";
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, 2 ms (stage 61567.0: task 151526))<br>peak memory total (min, med, max (stageId: taskId))<br>5.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 61567.0: task 151523))<br>number of output rows: 0<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#731324], functions=[max(version#731326)])"];
}
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#731324, 20), ENSURE_REQUIREMENTS, [plan_id=290773]"];
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n974 ms (0 ms, 1 ms, 112 ms (stage 61566.0: task 151504))";
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>8 ms (0 ms, 0 ms, 2 ms (stage 61566.0: task 151506))<br>peak memory total (min, med, max (stageId: taskId))<br>5.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 61566.0: task 151501))<br>number of output rows: 0<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#731324], functions=[partial_max(version#731326)])"];
}
5 [id="node5" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#731324, version#731326]"];
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#731325L, 20), REPARTITION_BY_NUM, [plan_id=290744]"];
subgraph cluster7 {
isCluster="true";
id="cluster7";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n380 ms (0 ms, 0 ms, 76 ms (stage 61565.0: task 151477))";
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>1 ms (0 ms, 0 ms, 1 ms (stage 61565.0: task 151480))<br>peak memory total (min, med, max (stageId: taskId))<br>5.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 61565.0: task 151477))<br>number of output rows: 0<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[demandChannel#731328, shardId#731324, kpis#731330, version#731326, qty#731327, worklistShardItemId#731325L, demandStream#731329], 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#731328, shardId#731324, kpis#731330, version#731326, qty#731327, worklistShardItemId#731325L, demandStream#731329, 20), ENSURE_REQUIREMENTS, [plan_id=290740]"];
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#731328, shardId#731324, knownfloatingpointnormalized(transform(kpis#731330, lambdafunction(knownfloatingpointnormalized(if (isnull(lambda arg#731725)) null else named_struct(label, lambda arg#731725.label, dateTime, lambda arg#731725.dateTime, value, knownfloatingpointnormalized(normalizenanandzero(lambda arg#731725.value)))), lambda arg#731725, false))) AS kpis#731330, version#731326, knownfloatingpointnormalized(normalizenanandzero(qty#731327)) AS qty#731327, worklistShardItemId#731325L, demandStream#731329], 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#731324,worklistShardItemId#731325L,version#731326,qty#731327,demandChannel#731328,demandStream#731329,kpis#731330]"];
}
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#731324, version#731326]
Arguments: [shardId#731324, version#731326]
(2) InMemoryRelation
Arguments: [shardId#731324, worklistShardItemId#731325L, version#731326, qty#731327, demandChannel#731328, demandStream#731329, kpis#731330], StorageLevel(disk, memory, 2 replicas)
(3) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#731324, worklistShardItemId#731325L, version#731326, qty#731327, demandChannel#731328, demandStream#731329, kpis#731330]
Arguments: [shardId#731324, worklistShardItemId#731325L, version#731326, qty#731327, demandChannel#731328, demandStream#731329, kpis#731330], SQLExecutionRDD[34448] at start at FileStorageAdapterImpl.java:592, ExistingRDD, UnknownPartitioning(0)
(4) HashAggregate
Input [7]: [shardId#731324, worklistShardItemId#731325L, version#731326, qty#731327, demandChannel#731328, demandStream#731329, kpis#731330]
Keys [7]: [demandChannel#731328, shardId#731324, knownfloatingpointnormalized(transform(kpis#731330, lambdafunction(knownfloatingpointnormalized(if (isnull(lambda arg#731725)) null else named_struct(label, lambda arg#731725.label, dateTime, lambda arg#731725.dateTime, value, knownfloatingpointnormalized(normalizenanandzero(lambda arg#731725.value)))), lambda arg#731725, false))) AS kpis#731330, version#731326, knownfloatingpointnormalized(normalizenanandzero(qty#731327)) AS qty#731327, worklistShardItemId#731325L, demandStream#731329]
Functions: []
Aggregate Attributes: []
Results [7]: [demandChannel#731328, shardId#731324, kpis#731330, version#731326, qty#731327, worklistShardItemId#731325L, demandStream#731329]
(5) Exchange
Input [7]: [demandChannel#731328, shardId#731324, kpis#731330, version#731326, qty#731327, worklistShardItemId#731325L, demandStream#731329]
Arguments: hashpartitioning(demandChannel#731328, shardId#731324, kpis#731330, version#731326, qty#731327, worklistShardItemId#731325L, demandStream#731329, 20), ENSURE_REQUIREMENTS, [plan_id=290740]
(6) HashAggregate [codegen id : 2]
Input [7]: [demandChannel#731328, shardId#731324, kpis#731330, version#731326, qty#731327, worklistShardItemId#731325L, demandStream#731329]
Keys [7]: [demandChannel#731328, shardId#731324, kpis#731330, version#731326, qty#731327, worklistShardItemId#731325L, demandStream#731329]
Functions: []
Aggregate Attributes: []
Results [7]: [shardId#731324, worklistShardItemId#731325L, version#731326, qty#731327, demandChannel#731328, demandStream#731329, kpis#731330]
(7) Exchange
Input [7]: [shardId#731324, worklistShardItemId#731325L, version#731326, qty#731327, demandChannel#731328, demandStream#731329, kpis#731330]
Arguments: hashpartitioning(worklistShardItemId#731325L, 20), REPARTITION_BY_NUM, [plan_id=290744]
(8) HashAggregate [codegen id : 1]
Input [2]: [shardId#731324, version#731326]
Keys [1]: [shardId#731324]
Functions [1]: [partial_max(version#731326)]
Aggregate Attributes [1]: [max#731870]
Results [2]: [shardId#731324, max#731871]
(9) Exchange
Input [2]: [shardId#731324, max#731871]
Arguments: hashpartitioning(shardId#731324, 20), ENSURE_REQUIREMENTS, [plan_id=290773]
(10) HashAggregate [codegen id : 2]
Input [2]: [shardId#731324, max#731871]
Keys [1]: [shardId#731324]
Functions [1]: [max(version#731326)]
Aggregate Attributes [1]: [max(version#731326)#731764]
Results [2]: [shardId#731324, max(version#731326)#731764 AS version#731761]