digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
1 [labelType="html" label="<br><b>TakeOrderedAndProject</b><br><br>"];
subgraph cluster2 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: 14 ms";
3 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 0 ms<br>peak memory: 256.0 KiB<br>number of output rows: 60<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
}
4 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 1027.0 B<br>number of coalesced partitions: 1"];
5 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 60<br>local merged chunks fetched: 0<br>shuffle write time: 5 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: 60<br>local bytes read: 978.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: 1440.0 B<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: 978.0 B"];
subgraph cluster6 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: 15 ms";
7 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 2 ms<br>peak memory: 256.0 KiB<br>number of output rows: 60<br>number of sort fallback tasks: 0<br>avg hash probes per key: 0"];
8 [labelType="html" label="<br><b>Project</b><br><br>"];
9 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 60"];
10 [labelType="html" label="<b>Scan JDBCRelation((SELECT \"usager_id\", \"etablissement_id\", \"age\", \"sexe\", \"type_accompagnement\", \"date_entree\" FROM \"seraphin\".\"usagers\") as x) [numPartitions=1] </b><br><br>number of output rows: 60"];
}
1->0;
3->1;
4->3;
5->4;
7->5;
8->7;
9->8;
10->9;
}
11
AdaptiveSparkPlan isFinalPlan=true
TakeOrderedAndProject(limit=100, orderBy=[COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753 ASC NULLS FIRST], output=[COL_B2FD559B_98F2_4E27_B64D_A45F7761EB1C#44785])
HashAggregate(keys=[COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753], functions=[])
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753, 10), ENSURE_REQUIREMENTS, [plan_id=8797]
HashAggregate(keys=[COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753], functions=[])
Project [usager_id#44579 AS COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Filter CASE WHEN isnull(Contains(str_remove_accent(upper(str_remove_accent(usager_id#44579))), )) THEN false ELSE Contains(str_remove_accent(upper(str_remove_accent(usager_id#44579))), ) END
Scan JDBCRelation((SELECT "usager_id", "etablissement_id", "age", "sexe", "type_accompagnement", "date_entree" FROM "seraphin"."usagers") as x) [numPartitions=1] [usager_id#44579] PushedFilters: [], ReadSchema: struct<usager_id:string>
WholeStageCodegen (1)
== Physical Plan ==
AdaptiveSparkPlan (13)
+- == Final Plan ==
TakeOrderedAndProject (9)
+- * HashAggregate (8)
+- AQEShuffleRead (7)
+- ShuffleQueryStage (6), Statistics(sizeInBytes=1440.0 B, rowCount=60)
+- Exchange (5)
+- * HashAggregate (4)
+- * Project (3)
+- * Filter (2)
+- * Scan JDBCRelation((SELECT "usager_id", "etablissement_id", "age", "sexe", "type_accompagnement", "date_entree" FROM "seraphin"."usagers") as x) [numPartitions=1] (1)
+- == Initial Plan ==
TakeOrderedAndProject (12)
+- HashAggregate (11)
+- Exchange (10)
+- HashAggregate (4)
+- Project (3)
+- Filter (2)
+- Scan JDBCRelation((SELECT "usager_id", "etablissement_id", "age", "sexe", "type_accompagnement", "date_entree" FROM "seraphin"."usagers") as x) [numPartitions=1] (1)
(1) Scan JDBCRelation((SELECT "usager_id", "etablissement_id", "age", "sexe", "type_accompagnement", "date_entree" FROM "seraphin"."usagers") as x) [numPartitions=1] [codegen id : 1]
Output [1]: [usager_id#44579]
ReadSchema: struct<usager_id:string>
(2) Filter [codegen id : 1]
Input [1]: [usager_id#44579]
Condition : CASE WHEN isnull(Contains(str_remove_accent(upper(str_remove_accent(usager_id#44579))), )) THEN false ELSE Contains(str_remove_accent(upper(str_remove_accent(usager_id#44579))), ) END
(3) Project [codegen id : 1]
Output [1]: [usager_id#44579 AS COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Input [1]: [usager_id#44579]
(4) HashAggregate [codegen id : 1]
Input [1]: [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Keys [1]: [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Functions: []
Aggregate Attributes: []
Results [1]: [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
(5) Exchange
Input [1]: [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Arguments: hashpartitioning(COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753, 10), ENSURE_REQUIREMENTS, [plan_id=8797]
(6) ShuffleQueryStage
Output [1]: [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Arguments: 0
(7) AQEShuffleRead
Input [1]: [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Arguments: coalesced
(8) HashAggregate [codegen id : 2]
Input [1]: [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Keys [1]: [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Functions: []
Aggregate Attributes: []
Results [2]: [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753 AS COL_B2FD559B_98F2_4E27_B64D_A45F7761EB1C#44785, COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
(9) TakeOrderedAndProject
Input [2]: [COL_B2FD559B_98F2_4E27_B64D_A45F7761EB1C#44785, COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Arguments: 100, [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753 ASC NULLS FIRST], [COL_B2FD559B_98F2_4E27_B64D_A45F7761EB1C#44785]
(10) Exchange
Input [1]: [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Arguments: hashpartitioning(COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753, 10), ENSURE_REQUIREMENTS, [plan_id=8784]
(11) HashAggregate
Input [1]: [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Keys [1]: [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Functions: []
Aggregate Attributes: []
Results [2]: [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753 AS COL_B2FD559B_98F2_4E27_B64D_A45F7761EB1C#44785, COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
(12) TakeOrderedAndProject
Input [2]: [COL_B2FD559B_98F2_4E27_B64D_A45F7761EB1C#44785, COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753]
Arguments: 100, [COL_2FEEECAA_7C4C_4C6A_A294_7759C6845B25#44753 ASC NULLS FIRST], [COL_B2FD559B_98F2_4E27_B64D_A45F7761EB1C#44785]
(13) AdaptiveSparkPlan
Output [1]: [COL_B2FD559B_98F2_4E27_B64D_A45F7761EB1C#44785]
Arguments: isFinalPlan=true