digraph G {
subgraph cluster0 {
isCluster="true";
id="cluster0";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n10 ms (0 ms, 0 ms, 2 ms (stage 84371.0: task 202418))";
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>2 ms (0 ms, 0 ms, 1 ms (stage 84371.0: task 202418))<br>peak memory total (min, med, max (stageId: taskId))<br>5.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 84371.0: task 202418))<br>number of output rows: 0<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#1000019], functions=[max(version#1000021)])"];
}
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#1000019, 20), ENSURE_REQUIREMENTS, [plan_id=389110]"];
subgraph cluster3 {
isCluster="true";
id="cluster3";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n517 ms (0 ms, 1 ms, 96 ms (stage 84370.0: task 202396))";
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>5 ms (0 ms, 0 ms, 1 ms (stage 84370.0: task 202396))<br>peak memory total (min, med, max (stageId: taskId))<br>5.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 84370.0: task 202396))<br>number of output rows: 0<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[shardId#1000019], functions=[partial_max(version#1000021)])"];
}
5 [id="node5" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 0" tooltip="InMemoryTableScan [shardId#1000019, version#1000021]"];
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#1000020L, 20), REPARTITION_BY_NUM, [plan_id=389081]"];
subgraph cluster7 {
isCluster="true";
id="cluster7";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n381 ms (0 ms, 1 ms, 75 ms (stage 84369.0: task 202374))";
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 84369.0: task 202372))<br>peak memory total (min, med, max (stageId: taskId))<br>5.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 84369.0: task 202374))<br>number of output rows: 0<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0" tooltip="HashAggregate(keys=[demandChannel#1000023, shardId#1000019, kpis#1000025, version#1000021, qty#1000022, worklistShardItemId#1000020L, demandStream#1000024], 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#1000023, shardId#1000019, kpis#1000025, version#1000021, qty#1000022, worklistShardItemId#1000020L, demandStream#1000024, 20), ENSURE_REQUIREMENTS, [plan_id=389077]"];
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#1000023, shardId#1000019, knownfloatingpointnormalized(transform(kpis#1000025, lambdafunction(knownfloatingpointnormalized(if (isnull(lambda arg#1000420)) null else named_struct(label, lambda arg#1000420.label, dateTime, lambda arg#1000420.dateTime, value, knownfloatingpointnormalized(normalizenanandzero(lambda arg#1000420.value)))), lambda arg#1000420, false))) AS kpis#1000025, version#1000021, knownfloatingpointnormalized(normalizenanandzero(qty#1000022)) AS qty#1000022, worklistShardItemId#1000020L, demandStream#1000024], 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#1000019,worklistShardItemId#1000020L,version#1000021,qty#1000022,demandChannel#1000023,demandStream#1000024,kpis#1000025]"];
}
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#1000019, version#1000021]
Arguments: [shardId#1000019, version#1000021]
(2) InMemoryRelation
Arguments: [shardId#1000019, worklistShardItemId#1000020L, version#1000021, qty#1000022, demandChannel#1000023, demandStream#1000024, kpis#1000025], StorageLevel(disk, memory, 2 replicas)
(3) Scan ExistingRDD [codegen id : 1]
Output [7]: [shardId#1000019, worklistShardItemId#1000020L, version#1000021, qty#1000022, demandChannel#1000023, demandStream#1000024, kpis#1000025]
Arguments: [shardId#1000019, worklistShardItemId#1000020L, version#1000021, qty#1000022, demandChannel#1000023, demandStream#1000024, kpis#1000025], SQLExecutionRDD[46865] at start at FileStorageAdapterImpl.java:592, ExistingRDD, UnknownPartitioning(0)
(4) HashAggregate
Input [7]: [shardId#1000019, worklistShardItemId#1000020L, version#1000021, qty#1000022, demandChannel#1000023, demandStream#1000024, kpis#1000025]
Keys [7]: [demandChannel#1000023, shardId#1000019, knownfloatingpointnormalized(transform(kpis#1000025, lambdafunction(knownfloatingpointnormalized(if (isnull(lambda arg#1000420)) null else named_struct(label, lambda arg#1000420.label, dateTime, lambda arg#1000420.dateTime, value, knownfloatingpointnormalized(normalizenanandzero(lambda arg#1000420.value)))), lambda arg#1000420, false))) AS kpis#1000025, version#1000021, knownfloatingpointnormalized(normalizenanandzero(qty#1000022)) AS qty#1000022, worklistShardItemId#1000020L, demandStream#1000024]
Functions: []
Aggregate Attributes: []
Results [7]: [demandChannel#1000023, shardId#1000019, kpis#1000025, version#1000021, qty#1000022, worklistShardItemId#1000020L, demandStream#1000024]
(5) Exchange
Input [7]: [demandChannel#1000023, shardId#1000019, kpis#1000025, version#1000021, qty#1000022, worklistShardItemId#1000020L, demandStream#1000024]
Arguments: hashpartitioning(demandChannel#1000023, shardId#1000019, kpis#1000025, version#1000021, qty#1000022, worklistShardItemId#1000020L, demandStream#1000024, 20), ENSURE_REQUIREMENTS, [plan_id=389077]
(6) HashAggregate [codegen id : 2]
Input [7]: [demandChannel#1000023, shardId#1000019, kpis#1000025, version#1000021, qty#1000022, worklistShardItemId#1000020L, demandStream#1000024]
Keys [7]: [demandChannel#1000023, shardId#1000019, kpis#1000025, version#1000021, qty#1000022, worklistShardItemId#1000020L, demandStream#1000024]
Functions: []
Aggregate Attributes: []
Results [7]: [shardId#1000019, worklistShardItemId#1000020L, version#1000021, qty#1000022, demandChannel#1000023, demandStream#1000024, kpis#1000025]
(7) Exchange
Input [7]: [shardId#1000019, worklistShardItemId#1000020L, version#1000021, qty#1000022, demandChannel#1000023, demandStream#1000024, kpis#1000025]
Arguments: hashpartitioning(worklistShardItemId#1000020L, 20), REPARTITION_BY_NUM, [plan_id=389081]
(8) HashAggregate [codegen id : 1]
Input [2]: [shardId#1000019, version#1000021]
Keys [1]: [shardId#1000019]
Functions [1]: [partial_max(version#1000021)]
Aggregate Attributes [1]: [max#1000565]
Results [2]: [shardId#1000019, max#1000566]
(9) Exchange
Input [2]: [shardId#1000019, max#1000566]
Arguments: hashpartitioning(shardId#1000019, 20), ENSURE_REQUIREMENTS, [plan_id=389110]
(10) HashAggregate [codegen id : 2]
Input [2]: [shardId#1000019, max#1000566]
Keys [1]: [shardId#1000019]
Functions [1]: [max(version#1000021)]
Aggregate Attributes [1]: [max(version#1000021)#1000459]
Results [2]: [shardId#1000019, max(version#1000021)#1000459 AS version#1000456]