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: 1 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: 185 ms";
10 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 180 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: 232 ms";
14 [labelType="html" label="<b>Sort</b><br><br>sort time: 9 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 1438.0: task 1947))<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 1438.0: task 1947))<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 1438.0: task 1947))"];
subgraph cluster17 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n7.3 s (3 ms, 5 ms, 6.1 s (stage 1438.0: task 1947))";
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>1.0 s (2 ms, 4 ms, 799 ms (stage 1438.0: task 1947))<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, 2 ms, 2 ms (stage 1439.0: task 1953))<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 1439.0: task 1953))<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 1439.0: task 1953))"];
subgraph cluster30 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n210 ms (86 ms, 124 ms, 124 ms (stage 1439.0: task 1953))";
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=36944]
HashAggregate(keys=[], functions=[partial_count(1)])
HashAggregate(keys=[COL_4FCEDA66_4346_4DA2_A753_1BBC9F8A04DD#125184], functions=[])
WholeStageCodegen (7)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_4FCEDA66_4346_4DA2_A753_1BBC9F8A04DD#125184, 10), ENSURE_REQUIREMENTS, [plan_id=36888]
HashAggregate(keys=[COL_4FCEDA66_4346_4DA2_A753_1BBC9F8A04DD#125184], functions=[])
Project [str_join(array(COL_E75FD19A_D578_4037_B330_0F4E587CAF25#124904, 00_C_PASSAGE_PA_345648_COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#125001), @) AS COL_4FCEDA66_4346_4DA2_A753_1BBC9F8A04DD#125184]
SortMergeJoin [COL_136DCAA3_2545_47C9_A61E_86ED7914066D#124707], [00_C_PASSAGE_PA_345648_COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#125000], LeftOuter
WholeStageCodegen (6)
Sort [COL_136DCAA3_2545_47C9_A61E_86ED7914066D#124707 ASC NULLS FIRST], false, 0
WholeStageCodegen (3)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_136DCAA3_2545_47C9_A61E_86ED7914066D#124707, 10), ENSURE_REQUIREMENTS, [plan_id=36485]
Project [COL_1CCAED33_3E69_435E_B522_DAE3B9E63F9D#124603 AS COL_136DCAA3_2545_47C9_A61E_86ED7914066D#124707, str_join(array(str_remove_space(str_if_with_rule(((COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#124600 <=> B) OR (COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#124600 <=> C)), str_extract_middle(COL_B706A975_F287_4DC9_B631_A35735FE936F#124597, 78, 5), null), ONLY_ONE), str_remove_space(str_if_with_rule(((COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#124600 <=> B) OR (COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#124600 <=> C)), str_extract_middle(COL_B706A975_F287_4DC9_B631_A35735FE936F#124597, 68, 2), null), ONLY_ONE)), @) AS COL_E75FD19A_D578_4037_B330_0F4E587CAF25#124904]
Filter (str_if_with_rule((((str_remove_space(str_if_with_rule(((COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#124600 <=> B) OR (COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#124600 <=> C)), str_extract_middle(COL_B706A975_F287_4DC9_B631_A35735FE936F#124597, 78, 5), null), ONLY_ONE) <=> SAS) OR (str_remove_space(str_if_with_rule(((COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#124600 <=> B) OR (COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#124600 <=> C)), str_extract_middle(COL_B706A975_F287_4DC9_B631_A35735FE936F#124597, 78, 5), null), ONLY_ONE) <=> SUF)) OR (str_remove_space(str_if_with_rule(((COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#124600 <=> B) OR (COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#124600 <=> C)), str_extract_middle(COL_B706A975_F287_4DC9_B631_A35735FE936F#124597, 78, 5), null), ONLY_ONE) <=> SUN)), 1, 0) <=> 1)
ColumnarToRow
WholeStageCodegen (1)
FileScan parquet [COL_B706A975_F287_4DC9_B631_A35735FE936F#124597,COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#124600,COL_1CCAED33_3E69_435E_B522_DAE3B9E63F9D#124603] 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#124541 AS 00_C_PASSAGE_PA_345648_COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#125000, COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#124542 AS 00_C_PASSAGE_PA_345648_COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#125001]
Filter (COL_6B340AEB_6908_4A50_8AD6_FE561D33FBE0#124557 <=> 1)
WholeStageCodegen (5)
Window [row_number() windowspecdefinition(COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#124541, 1 DESC NULLS LAST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS COL_6B340AEB_6908_4A50_8AD6_FE561D33FBE0#124557], [COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#124541], [1 DESC NULLS LAST]
Sort [COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#124541 ASC NULLS FIRST, 1 DESC NULLS LAST], false, 0
WholeStageCodegen (4)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#124541, 10), ENSURE_REQUIREMENTS, [plan_id=36501]
Project [Numéro Séjour#124420 AS COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#124541, UF#124421 AS COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#124542]
Filter (NOT CASE WHEN isnull(StartsWith(Numéro Séjour#124420, #)) THEN false ELSE StartsWith(Numéro Séjour#124420, #) END AND isnotnull(Numéro Séjour#124420))
WholeStageCodegen (2)
FileScan csv [Numéro Séjour#124420,UF#124421] Batched: false, DataFilters: [NOT CASE WHEN isnull(StartsWith(Numéro Séjour#124420, #)) 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>