digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
subgraph cluster1 {
isCluster="true";
label="WholeStageCodegen (8)\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 (7)\n \nduration: 2 ms";
5 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 2 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: 0 ms<br>peak memory: 256.0 KiB<br>number of output rows: 139<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: 3.3 KiB<br>number of coalesced partitions: 1"];
8 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 139<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: 139<br>local bytes read: 3.2 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: 6.1 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: 3.2 KiB"];
subgraph cluster9 {
isCluster="true";
label="WholeStageCodegen (6)\n \nduration: 172 ms";
10 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 167 ms<br>peak memory: 256.0 KiB<br>number of output rows: 139<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>SortMergeJoin</b><br><br>number of output rows: 41,179<br>spill size: 0.0 B"];
}
subgraph cluster13 {
isCluster="true";
label="WholeStageCodegen (3)\n \nduration: 217 ms";
14 [labelType="html" label="<b>Sort</b><br><br>sort time: 8 ms<br>peak memory: 17.0 MiB<br>spill size: 0.0 B"];
}
15 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 476.3 KiB<br>number of coalesced partitions: 1"];
16 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 41,179<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>4 ms (1 ms, 3 ms, 3 ms (stage 1411.0: task 1914))<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: 41,179<br>local bytes read: 453.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: 2<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>1930.3 KiB (293.7 KiB, 1636.6 KiB, 1636.6 KiB (stage 1411.0: task 1914))<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 total (min, med, max (stageId: taskId))<br>453.4 KiB (69.6 KiB, 383.8 KiB, 383.8 KiB (stage 1411.0: task 1914))"];
subgraph cluster17 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n7.1 s (3 ms, 4 ms, 6.0 s (stage 1411.0: task 1914))";
18 [labelType="html" label="<br><b>Project</b><br><br>"];
19 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 41,179"];
20 [labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 2,996,009<br>number of input batches: 732"];
}
21 [labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 1<br>scan time total (min, med, max (stageId: taskId))<br>980 ms (2 ms, 3 ms, 803 ms (stage 1411.0: task 1914))<br>metadata time: 0 ms<br>size of files read: 150.9 MiB<br>number of output rows: 2,996,009"];
subgraph cluster22 {
isCluster="true";
label="WholeStageCodegen (5)\n \nduration: 0 ms";
23 [labelType="html" label="<br><b>Project</b><br><br>"];
24 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 83,244"];
}
25 [labelType="html" label="<b>Window</b><br><br>spill size: 0.0 B"];
subgraph cluster26 {
isCluster="true";
label="WholeStageCodegen (4)\n \nduration: 0 ms";
27 [labelType="html" label="<b>Sort</b><br><br>sort time: 14 ms<br>peak memory: 20.0 MiB<br>spill size: 0.0 B"];
}
28 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 1113.9 KiB<br>number of coalesced partitions: 1"];
29 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 93,005<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>5 ms (2 ms, 3 ms, 3 ms (stage 1412.0: task 1920))<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: 93,005<br>local bytes read: 1057.6 KiB<br>fetch wait time: 0 ms<br>remote bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 2<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>6.3 MiB (2.6 MiB, 3.7 MiB, 3.7 MiB (stage 1412.0: task 1920))<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 total (min, med, max (stageId: taskId))<br>1057.6 KiB (437.9 KiB, 619.8 KiB, 619.8 KiB (stage 1412.0: task 1920))"];
subgraph cluster30 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n209 ms (85 ms, 124 ms, 124 ms (stage 1412.0: task 1920))";
31 [labelType="html" label="<br><b>Project</b><br><br>"];
32 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 93,005"];
}
33 [labelType="html" label="<b>Scan csv </b><br><br>number of output rows: 93,005<br>number of files read: 1<br>metadata time: 0 ms<br>size of files read: 6.4 MiB"];
2->0;
3->2;
5->3;
6->5;
7->6;
8->7;
10->8;
11->10;
12->11;
14->12;
15->14;
16->15;
18->16;
19->18;
20->19;
21->20;
23->12;
24->23;
25->24;
27->25;
28->27;
29->28;
31->29;
32->31;
33->32;
}
34
AdaptiveSparkPlan isFinalPlan=true
HashAggregate(keys=[], functions=[count(1)])
WholeStageCodegen (8)
Exchange SinglePartition, ENSURE_REQUIREMENTS, [plan_id=36221]
HashAggregate(keys=[], functions=[partial_count(1)])
HashAggregate(keys=[COL_4FCEDA66_4346_4DA2_A753_1BBC9F8A04DD#123446], functions=[])
WholeStageCodegen (7)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_4FCEDA66_4346_4DA2_A753_1BBC9F8A04DD#123446, 10), ENSURE_REQUIREMENTS, [plan_id=36165]
HashAggregate(keys=[COL_4FCEDA66_4346_4DA2_A753_1BBC9F8A04DD#123446], functions=[])
Project [str_join(array(COL_E75FD19A_D578_4037_B330_0F4E587CAF25#123166, 00_C_PASSAGE_PA_345648_COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#123263), @) AS COL_4FCEDA66_4346_4DA2_A753_1BBC9F8A04DD#123446]
SortMergeJoin [COL_136DCAA3_2545_47C9_A61E_86ED7914066D#122969], [00_C_PASSAGE_PA_345648_COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#123262], LeftOuter
WholeStageCodegen (6)
Sort [COL_136DCAA3_2545_47C9_A61E_86ED7914066D#122969 ASC NULLS FIRST], false, 0
WholeStageCodegen (3)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_136DCAA3_2545_47C9_A61E_86ED7914066D#122969, 10), ENSURE_REQUIREMENTS, [plan_id=35762]
Project [COL_1CCAED33_3E69_435E_B522_DAE3B9E63F9D#122865 AS COL_136DCAA3_2545_47C9_A61E_86ED7914066D#122969, str_join(array(str_remove_space(str_if_with_rule(((COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#122862 <=> B) OR (COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#122862 <=> C)), str_extract_middle(COL_B706A975_F287_4DC9_B631_A35735FE936F#122859, 78, 5), null), ONLY_ONE), str_remove_space(str_if_with_rule(((COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#122862 <=> B) OR (COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#122862 <=> C)), str_extract_middle(COL_B706A975_F287_4DC9_B631_A35735FE936F#122859, 68, 2), null), ONLY_ONE)), @) AS COL_E75FD19A_D578_4037_B330_0F4E587CAF25#123166]
Filter (str_if_with_rule((((str_remove_space(str_if_with_rule(((COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#122862 <=> B) OR (COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#122862 <=> C)), str_extract_middle(COL_B706A975_F287_4DC9_B631_A35735FE936F#122859, 78, 5), null), ONLY_ONE) <=> SAS) OR (str_remove_space(str_if_with_rule(((COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#122862 <=> B) OR (COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#122862 <=> C)), str_extract_middle(COL_B706A975_F287_4DC9_B631_A35735FE936F#122859, 78, 5), null), ONLY_ONE) <=> SUF)) OR (str_remove_space(str_if_with_rule(((COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#122862 <=> B) OR (COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#122862 <=> C)), str_extract_middle(COL_B706A975_F287_4DC9_B631_A35735FE936F#122859, 78, 5), null), ONLY_ONE) <=> SUN)), 1, 0) <=> 1)
ColumnarToRow
WholeStageCodegen (1)
FileScan parquet [COL_B706A975_F287_4DC9_B631_A35735FE936F#122859,COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#122862,COL_1CCAED33_3E69_435E_B522_DAE3B9E63F9D#122865] Batched: true, DataFilters: [(str_if_with_rule((((str_remove_space(str_if_with_rule(((COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F3..., Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/data/output/cache/parquet/datablock/00_A_LIGNES_RSF_345253], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<COL_B706A975_F287_4DC9_B631_A35735FE936F:string,COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38:s...
Project [COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#122803 AS 00_C_PASSAGE_PA_345648_COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#123262, COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#122804 AS 00_C_PASSAGE_PA_345648_COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#123263]
Filter (COL_6B340AEB_6908_4A50_8AD6_FE561D33FBE0#122819 <=> 1)
WholeStageCodegen (5)
Window [row_number() windowspecdefinition(COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#122803, 1 DESC NULLS LAST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS COL_6B340AEB_6908_4A50_8AD6_FE561D33FBE0#122819], [COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#122803], [1 DESC NULLS LAST]
Sort [COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#122803 ASC NULLS FIRST, 1 DESC NULLS LAST], false, 0
WholeStageCodegen (4)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#122803, 10), ENSURE_REQUIREMENTS, [plan_id=35778]
Project [Numéro Séjour#122682 AS COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#122803, UF#122683 AS COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#122804]
Filter (NOT CASE WHEN isnull(StartsWith(Numéro Séjour#122682, #)) THEN false ELSE StartsWith(Numéro Séjour#122682, #) END AND isnotnull(Numéro Séjour#122682))
WholeStageCodegen (2)
FileScan csv [Numéro Séjour#122682,UF#122683] Batched: false, DataFilters: [NOT CASE WHEN isnull(StartsWith(Numéro Séjour#122682, #)) THEN false ELSE StartsWith(Numéro Séjo..., Format: CSV, Location: InMemoryFileIndex(1 paths)[file:/data/input/depot/csv/tmp/02_PASSAGE_PATI_344985/passage_pationt_..., PartitionFilters: [], PushedFilters: [IsNotNull(Numéro Séjour)], ReadSchema: struct<Numéro Séjour:string,UF:string>