digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
subgraph cluster1 {
isCluster="true";
label="WholeStageCodegen (3)\n \nduration: 0 ms";
2 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build: 0 ms<br>number of output rows: 1"];
}
3 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 1<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>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 1<br>local bytes read: 59.0 B<br>fetch wait time: 0 ms<br>remote bytes read: 0.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: 16.0 B<br>local merged bytes read: 0.0 B<br>number of partitions: 1<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 59.0 B"];
subgraph cluster4 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: 3 ms";
5 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 3 ms<br>peak memory: 0.0 B<br>number of output rows: 1<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
6 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 1 ms<br>peak memory: 256.0 KiB<br>number of output rows: 717<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
}
7 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 56.8 KiB<br>number of coalesced partitions: 1"];
8 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 717<br>local merged chunks fetched: 0<br>shuffle write time: 1 ms<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 717<br>local bytes read: 54.4 KiB<br>fetch wait time: 0 ms<br>remote bytes read: 0.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: 72.8 KiB<br>local merged bytes read: 0.0 B<br>number of partitions: 10<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 54.4 KiB"];
subgraph cluster9 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: 109 ms";
10 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 102 ms<br>peak memory: 256.0 KiB<br>number of output rows: 717<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
11 [labelType="html" label="<br><b>Project</b><br><br>"];
12 [labelType="html" label="<b>Scan JDBCRelation((SELECT RAWTOHEX(VISIT_ID), RAWTOHEX(PATIENT_ID), \"IN_DATE\", \"OUT_DATE\", \"IN_MODE\", \"OUT_MODE\", \"IN_UNIT\", \"OUT_UNIT\", \"VISIT_TYPE\", \"CHAMP_PMSI\", \"UNIT_PATH\", \"EMERGENCY\", \"CANCELED\" FROM \"DTM_622\".\"VISIT\") x) [numPartitions=1] </b><br><br>number of output rows: 717"];
}
2->0;
3->2;
5->3;
6->5;
7->6;
8->7;
10->8;
11->10;
12->11;
}
13
AdaptiveSparkPlan isFinalPlan=true
HashAggregate(keys=[], functions=[count(1)])
WholeStageCodegen (3)
Exchange SinglePartition, ENSURE_REQUIREMENTS, [plan_id=17484]
HashAggregate(keys=[], functions=[partial_count(1)])
HashAggregate(keys=[COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446], functions=[])
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446, 10), ENSURE_REQUIREMENTS, [plan_id=17450]
HashAggregate(keys=[COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446], functions=[])
Project [RAWTOHEX(VISIT_ID)#110255 AS COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, RAWTOHEX(PATIENT_ID)#110256 AS COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446]
Scan JDBCRelation((SELECT RAWTOHEX(VISIT_ID), RAWTOHEX(PATIENT_ID), "IN_DATE", "OUT_DATE", "IN_MODE", "OUT_MODE", "IN_UNIT", "OUT_UNIT", "VISIT_TYPE", "CHAMP_PMSI", "UNIT_PATH", "EMERGENCY", "CANCELED" FROM "DTM_622"."VISIT") x) [numPartitions=1] [RAWTOHEX(VISIT_ID)#110255,RAWTOHEX(PATIENT_ID)#110256] PushedFilters: [], ReadSchema: struct<RAWTOHEX(VISIT_ID):string,RAWTOHEX(PATIENT_ID):string>
WholeStageCodegen (1)
== Physical Plan ==
AdaptiveSparkPlan (17)
+- == Final Plan ==
* HashAggregate (11)
+- ShuffleQueryStage (10), Statistics(sizeInBytes=16.0 B, rowCount=1)
+- Exchange (9)
+- * HashAggregate (8)
+- * HashAggregate (7)
+- AQEShuffleRead (6)
+- ShuffleQueryStage (5), Statistics(sizeInBytes=72.8 KiB, rowCount=717)
+- Exchange (4)
+- * HashAggregate (3)
+- * Project (2)
+- * Scan JDBCRelation((SELECT RAWTOHEX(VISIT_ID), RAWTOHEX(PATIENT_ID), "IN_DATE", "OUT_DATE", "IN_MODE", "OUT_MODE", "IN_UNIT", "OUT_UNIT", "VISIT_TYPE", "CHAMP_PMSI", "UNIT_PATH", "EMERGENCY", "CANCELED" FROM "DTM_622"."VISIT") x) [numPartitions=1] (1)
+- == Initial Plan ==
HashAggregate (16)
+- Exchange (15)
+- HashAggregate (14)
+- HashAggregate (13)
+- Exchange (12)
+- HashAggregate (3)
+- Project (2)
+- Scan JDBCRelation((SELECT RAWTOHEX(VISIT_ID), RAWTOHEX(PATIENT_ID), "IN_DATE", "OUT_DATE", "IN_MODE", "OUT_MODE", "IN_UNIT", "OUT_UNIT", "VISIT_TYPE", "CHAMP_PMSI", "UNIT_PATH", "EMERGENCY", "CANCELED" FROM "DTM_622"."VISIT") x) [numPartitions=1] (1)
(1) Scan JDBCRelation((SELECT RAWTOHEX(VISIT_ID), RAWTOHEX(PATIENT_ID), "IN_DATE", "OUT_DATE", "IN_MODE", "OUT_MODE", "IN_UNIT", "OUT_UNIT", "VISIT_TYPE", "CHAMP_PMSI", "UNIT_PATH", "EMERGENCY", "CANCELED" FROM "DTM_622"."VISIT") x) [numPartitions=1] [codegen id : 1]
Output [2]: [RAWTOHEX(VISIT_ID)#110255, RAWTOHEX(PATIENT_ID)#110256]
ReadSchema: struct<RAWTOHEX(VISIT_ID):string,RAWTOHEX(PATIENT_ID):string>
(2) Project [codegen id : 1]
Output [2]: [RAWTOHEX(VISIT_ID)#110255 AS COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, RAWTOHEX(PATIENT_ID)#110256 AS COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446]
Input [2]: [RAWTOHEX(VISIT_ID)#110255, RAWTOHEX(PATIENT_ID)#110256]
(3) HashAggregate [codegen id : 1]
Input [2]: [COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446]
Keys [2]: [COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446]
Functions: []
Aggregate Attributes: []
Results [2]: [COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446]
(4) Exchange
Input [2]: [COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446]
Arguments: hashpartitioning(COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446, 10), ENSURE_REQUIREMENTS, [plan_id=17450]
(5) ShuffleQueryStage
Output [2]: [COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446]
Arguments: 0
(6) AQEShuffleRead
Input [2]: [COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446]
Arguments: coalesced
(7) HashAggregate [codegen id : 2]
Input [2]: [COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446]
Keys [2]: [COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446]
Functions: []
Aggregate Attributes: []
Results: []
(8) HashAggregate [codegen id : 2]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#110504L]
Results [1]: [count#110505L]
(9) Exchange
Input [1]: [count#110505L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=17484]
(10) ShuffleQueryStage
Output [1]: [count#110505L]
Arguments: 1
(11) HashAggregate [codegen id : 3]
Input [1]: [count#110505L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#110495L]
Results [1]: [count(1)#110495L AS COL_327A36FE_82BA_4984_A15B_DD8E798CA214#110497L]
(12) Exchange
Input [2]: [COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446]
Arguments: hashpartitioning(COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446, 10), ENSURE_REQUIREMENTS, [plan_id=17431]
(13) HashAggregate
Input [2]: [COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446]
Keys [2]: [COL_D1B395D6_D524_432D_909D_864762E08EE6#110445, COL_2CF82CE2_44C0_477C_9775_9313FABD9720#110446]
Functions: []
Aggregate Attributes: []
Results: []
(14) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#110504L]
Results [1]: [count#110505L]
(15) Exchange
Input [1]: [count#110505L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=17435]
(16) HashAggregate
Input [1]: [count#110505L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#110495L]
Results [1]: [count(1)#110495L AS COL_327A36FE_82BA_4984_A15B_DD8E798CA214#110497L]
(17) AdaptiveSparkPlan
Output [1]: [COL_327A36FE_82BA_4984_A15B_DD8E798CA214#110497L]
Arguments: isFinalPlan=true