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 68218.0: task 170275))";
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>4 ms (0 ms, 0 ms, 1 ms (stage 68218.0: task 170277))<br>peak memory total (min, med, max (stageId: taskId))<br>5.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 68218.0: task 170275))<br>number of output rows: 0<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#825003], functions=[max(version#825005)])"];
}
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#825003, 20), ENSURE_REQUIREMENTS, [plan_id=324200]"];
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n978 ms (0 ms, 95 ms, 100 ms (stage 68217.0: task 170239))";
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>3 ms (0 ms, 0 ms, 1 ms (stage 68217.0: task 170240))<br>peak memory total (min, med, max (stageId: taskId))<br>5.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 68217.0: task 170246))<br>number of output rows: 0<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#825003], functions=[partial_max(version#825005)])"];
}
5 [id="node5" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#825003, version#825005]"];
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#825004L, 20), REPARTITION_BY_NUM, [plan_id=324171]"];
subgraph cluster7 {
isCluster="true";
id="cluster7";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n761 ms (0 ms, 72 ms, 79 ms (stage 68216.0: task 170225))";
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>2 ms (0 ms, 0 ms, 1 ms (stage 68216.0: task 170226))<br>peak memory total (min, med, max (stageId: taskId))<br>5.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 68216.0: task 170220))<br>number of output rows: 0<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[demandChannel#825007, shardId#825003, kpis#825009, version#825005, qty#825006, worklistShardItemId#825004L, demandStream#825008], 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#825007, shardId#825003, kpis#825009, version#825005, qty#825006, worklistShardItemId#825004L, demandStream#825008, 20), ENSURE_REQUIREMENTS, [plan_id=324167]"];
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#825007, shardId#825003, knownfloatingpointnormalized(transform(kpis#825009, lambdafunction(knownfloatingpointnormalized(if (isnull(lambda arg#825404)) null else named_struct(label, lambda arg#825404.label, dateTime, lambda arg#825404.dateTime, value, knownfloatingpointnormalized(normalizenanandzero(lambda arg#825404.value)))), lambda arg#825404, false))) AS kpis#825009, version#825005, knownfloatingpointnormalized(normalizenanandzero(qty#825006)) AS qty#825006, worklistShardItemId#825004L, demandStream#825008], 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#825003,worklistShardItemId#825004L,version#825005,qty#825006,demandChannel#825007,demandStream#825008,kpis#825009]"];
}
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#825003, version#825005]
Arguments: [shardId#825003, version#825005]
(2) InMemoryRelation
Arguments: [shardId#825003, worklistShardItemId#825004L, version#825005, qty#825006, demandChannel#825007, demandStream#825008, kpis#825009], StorageLevel(disk, memory, 2 replicas)
(3) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#825003, worklistShardItemId#825004L, version#825005, qty#825006, demandChannel#825007, demandStream#825008, kpis#825009]
Arguments: [shardId#825003, worklistShardItemId#825004L, version#825005, qty#825006, demandChannel#825007, demandStream#825008, kpis#825009], SQLExecutionRDD[38733] at start at FileStorageAdapterImpl.java:592, ExistingRDD, UnknownPartitioning(0)
(4) HashAggregate
Input [7]: [shardId#825003, worklistShardItemId#825004L, version#825005, qty#825006, demandChannel#825007, demandStream#825008, kpis#825009]
Keys [7]: [demandChannel#825007, shardId#825003, knownfloatingpointnormalized(transform(kpis#825009, lambdafunction(knownfloatingpointnormalized(if (isnull(lambda arg#825404)) null else named_struct(label, lambda arg#825404.label, dateTime, lambda arg#825404.dateTime, value, knownfloatingpointnormalized(normalizenanandzero(lambda arg#825404.value)))), lambda arg#825404, false))) AS kpis#825009, version#825005, knownfloatingpointnormalized(normalizenanandzero(qty#825006)) AS qty#825006, worklistShardItemId#825004L, demandStream#825008]
Functions: []
Aggregate Attributes: []
Results [7]: [demandChannel#825007, shardId#825003, kpis#825009, version#825005, qty#825006, worklistShardItemId#825004L, demandStream#825008]
(5) Exchange
Input [7]: [demandChannel#825007, shardId#825003, kpis#825009, version#825005, qty#825006, worklistShardItemId#825004L, demandStream#825008]
Arguments: hashpartitioning(demandChannel#825007, shardId#825003, kpis#825009, version#825005, qty#825006, worklistShardItemId#825004L, demandStream#825008, 20), ENSURE_REQUIREMENTS, [plan_id=324167]
(6) HashAggregate [codegen id : 2]
Input [7]: [demandChannel#825007, shardId#825003, kpis#825009, version#825005, qty#825006, worklistShardItemId#825004L, demandStream#825008]
Keys [7]: [demandChannel#825007, shardId#825003, kpis#825009, version#825005, qty#825006, worklistShardItemId#825004L, demandStream#825008]
Functions: []
Aggregate Attributes: []
Results [7]: [shardId#825003, worklistShardItemId#825004L, version#825005, qty#825006, demandChannel#825007, demandStream#825008, kpis#825009]
(7) Exchange
Input [7]: [shardId#825003, worklistShardItemId#825004L, version#825005, qty#825006, demandChannel#825007, demandStream#825008, kpis#825009]
Arguments: hashpartitioning(worklistShardItemId#825004L, 20), REPARTITION_BY_NUM, [plan_id=324171]
(8) HashAggregate [codegen id : 1]
Input [2]: [shardId#825003, version#825005]
Keys [1]: [shardId#825003]
Functions [1]: [partial_max(version#825005)]
Aggregate Attributes [1]: [max#825549]
Results [2]: [shardId#825003, max#825550]
(9) Exchange
Input [2]: [shardId#825003, max#825550]
Arguments: hashpartitioning(shardId#825003, 20), ENSURE_REQUIREMENTS, [plan_id=324200]
(10) HashAggregate [codegen id : 2]
Input [2]: [shardId#825003, max#825550]
Keys [1]: [shardId#825003]
Functions [1]: [max(version#825005)]
Aggregate Attributes [1]: [max(version#825005)#825443]
Results [2]: [shardId#825003, max(version#825005)#825443 AS version#825440]