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 (11)\n \nduration: 4 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: 16.3 MiB<br>number of output rows: 6<br>number of sort fallback tasks: 0<br>avg hash probes per key: 1"];
}
4 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 862.0 B<br>number of coalesced partitions: 1"];
5 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 6<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: 6<br>local bytes read: 830.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: 672.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: 830.0 B"];
subgraph cluster6 {
isCluster="true";
label="WholeStageCodegen (10)\n \nduration: 28.7 s";
7 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 28.7 s<br>peak memory: 256.0 KiB<br>number of output rows: 6<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: 602,093"];
}
10 [labelType="html" label="<b>Window</b><br><br>spill size: 0.0 B"];
subgraph cluster11 {
isCluster="true";
label="WholeStageCodegen (9)\n \nduration: 29.0 s";
12 [labelType="html" label="<b>Sort</b><br><br>sort time: 50 ms<br>peak memory: 48.0 MiB<br>spill size: 0.0 B"];
}
13 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 688.3 KiB<br>number of coalesced partitions: 1"];
14 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 602,754<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>19 ms (1 ms, 2 ms, 2 ms (stage 1070.0: task 1411))<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: 602,754<br>local bytes read: 653.5 KiB<br>fetch wait time: 0 ms<br>remote bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 10<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>16.2 MiB (1643.0 KiB, 1659.6 KiB, 1670.6 KiB (stage 1070.0: task 1412))<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>653.5 KiB (64.0 KiB, 65.5 KiB, 66.2 KiB (stage 1070.0: task 1409))"];
subgraph cluster15 {
isCluster="true";
label="WholeStageCodegen (8)\n \nduration: total (min, med, max (stageId: taskId))\n3.4 s (334 ms, 336 ms, 346 ms (stage 1070.0: task 1410))";
16 [labelType="html" label="<br><b>Project</b><br><br>"];
17 [labelType="html" label="<b>SortMergeJoin</b><br><br>number of output rows: 602,754<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1070.0: task 1406))"];
}
subgraph cluster18 {
isCluster="true";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n3.4 s (342 ms, 344 ms, 353 ms (stage 1070.0: task 1410))";
19 [labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>113 ms (11 ms, 11 ms, 12 ms (stage 1070.0: task 1411))<br>peak memory total (min, med, max (stageId: taskId))<br>180.0 MiB (18.0 MiB, 18.0 MiB, 18.0 MiB (stage 1070.0: task 1406))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1070.0: task 1406))"];
}
20 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 602,754<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>57 ms (5 ms, 5 ms, 6 ms (stage 1061.0: task 1403))<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: 602,754<br>local bytes read total (min, med, max (stageId: taskId))<br>15.3 MiB (1557.8 KiB, 1571.2 KiB, 1579.4 KiB (stage 1070.0: task 1412))<br>fetch wait time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 1070.0: task 1406))<br>remote bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 100<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>51.3 MiB (5.1 MiB, 5.1 MiB, 5.2 MiB (stage 1061.0: task 1404))<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>15.3 MiB (1557.0 KiB, 1571.4 KiB, 1578.9 KiB (stage 1061.0: task 1396))"];
subgraph cluster21 {
isCluster="true";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n3.3 s (311 ms, 320 ms, 402 ms (stage 1061.0: task 1398))";
22 [labelType="html" label="<br><b>Project</b><br><br>"];
23 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 602,754"];
}
24 [labelType="html" label="<b>Window</b><br><br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1061.0: task 1395))"];
subgraph cluster25 {
isCluster="true";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n4.7 s (431 ms, 466 ms, 552 ms (stage 1061.0: task 1398))";
26 [labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>161 ms (14 ms, 14 ms, 23 ms (stage 1061.0: task 1396))<br>peak memory total (min, med, max (stageId: taskId))<br>400.0 MiB (40.0 MiB, 40.0 MiB, 40.0 MiB (stage 1061.0: task 1395))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1061.0: task 1395))"];
}
27 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 2,996,009<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>96 ms (15 ms, 81 ms, 81 ms (stage 1052.0: task 1367))<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: 2,996,009<br>local bytes read total (min, med, max (stageId: taskId))<br>30.6 MiB (3.0 MiB, 3.1 MiB, 3.1 MiB (stage 1061.0: task 1404))<br>fetch wait time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 1061.0: task 1395))<br>remote bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 20<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>262.3 MiB (39.0 MiB, 223.2 MiB, 223.2 MiB (stage 1052.0: task 1367))<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>30.6 MiB (4.6 MiB, 26.0 MiB, 26.0 MiB (stage 1052.0: task 1367))"];
subgraph cluster28 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n5.6 s (3 ms, 5 ms, 4.5 s (stage 1052.0: task 1367))";
29 [labelType="html" label="<br><b>Project</b><br><br>"];
30 [labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 2,996,009<br>number of input batches: 732"];
}
31 [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.3 s (2 ms, 4 ms, 1.1 s (stage 1052.0: task 1367))<br>metadata time: 0 ms<br>size of files read: 150.9 MiB<br>number of output rows: 2,996,009"];
subgraph cluster32 {
isCluster="true";
label="WholeStageCodegen (7)\n \nduration: 0 ms";
33 [labelType="html" label="<br><b>Project</b><br><br>"];
34 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 88,203"];
}
35 [labelType="html" label="<b>Window</b><br><br>spill size: 0.0 B"];
subgraph cluster36 {
isCluster="true";
label="WholeStageCodegen (6)\n \nduration: 0 ms";
37 [labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 1070.0: task 1406))<br>peak memory total (min, med, max (stageId: taskId))<br>162.5 MiB (16.3 MiB, 16.3 MiB, 16.3 MiB (stage 1070.0: task 1406))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 1070.0: task 1406))"];
}
38 [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 1053.0: task 1374))<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 total (min, med, max (stageId: taskId))<br>1057.6 KiB (103.1 KiB, 106.2 KiB, 107.8 KiB (stage 1070.0: task 1412))<br>fetch wait time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 1070.0: task 1406))<br>remote bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 20<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 1053.0: task 1373))<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 1053.0: task 1373))"];
subgraph cluster39 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n215 ms (96 ms, 119 ms, 119 ms (stage 1053.0: task 1373))";
40 [labelType="html" label="<br><b>Project</b><br><br>"];
41 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 93,005"];
}
42 [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"];
1->0;
3->1;
4->3;
5->4;
7->5;
8->7;
9->8;
10->9;
12->10;
13->12;
14->13;
16->14;
17->16;
19->17;
20->19;
22->20;
23->22;
24->23;
26->24;
27->26;
29->27;
30->29;
31->30;
33->17;
34->33;
35->34;
37->35;
38->37;
40->38;
41->40;
42->41;
}
43
AdaptiveSparkPlan isFinalPlan=true
TakeOrderedAndProject(limit=10, orderBy=[COL_5A5CA1D7_78FD_44C9_B61E_BE7E8296E46C2#100849L DESC NULLS LAST], output=[COL_5A5CA1D7_78FD_44C9_B61E_BE7E8296E46C1#100820,COL_5A5CA1D7_78FD_44C9_B61E_BE7E8296E46C2#100849L])
HashAggregate(keys=[COL_5A5CA1D7_78FD_44C9_B61E_BE7E8296E46C#100792], functions=[count(1)])
WholeStageCodegen (11)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_5A5CA1D7_78FD_44C9_B61E_BE7E8296E46C#100792, 10), ENSURE_REQUIREMENTS, [plan_id=27171]
HashAggregate(keys=[COL_5A5CA1D7_78FD_44C9_B61E_BE7E8296E46C#100792], functions=[partial_count(1)])
Project [str_list_as_str(COL_87E64838_3BAB_4526_BF3E_008427D11600#100494) AS COL_5A5CA1D7_78FD_44C9_B61E_BE7E8296E46C#100792]
Filter isnotnull(str_list_as_str(COL_87E64838_3BAB_4526_BF3E_008427D11600#100494))
WholeStageCodegen (10)
Window [collect_set(COL_AF978AAB_D361_4C61_94AF_432EBFAA8810#100275, 0, 0) windowspecdefinition(COL_A7B79A69_6514_4DE6_BB59_8CD22992A386#100443, 1 DESC NULLS LAST, specifiedwindowframe(RangeFrame, unboundedpreceding$(), currentrow$())) AS COL_87E64838_3BAB_4526_BF3E_008427D11600#100494], [COL_A7B79A69_6514_4DE6_BB59_8CD22992A386#100443], [1 DESC NULLS LAST]
Sort [COL_A7B79A69_6514_4DE6_BB59_8CD22992A386#100443 ASC NULLS FIRST, 1 DESC NULLS LAST], false, 0
WholeStageCodegen (9)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_A7B79A69_6514_4DE6_BB59_8CD22992A386#100443, 10), ENSURE_REQUIREMENTS, [plan_id=27082]
Project [str_if_with_rule((size(str_list_intersect_fixed(COL_7F6BA768_8054_4161_B9FA_C8767D1D66AD#99982, [SAS]), true) <=> 1), 00_C_PASSAGE_PA_345648_COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#100139, ) AS COL_A7B79A69_6514_4DE6_BB59_8CD22992A386#100443, 00_C_PASSAGE_PA_345648_COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#100139 AS COL_AF978AAB_D361_4C61_94AF_432EBFAA8810#100275]
SortMergeJoin [COL_136DCAA3_2545_47C9_A61E_86ED7914066D#99929], [00_C_PASSAGE_PA_345648_COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#100138], LeftOuter
WholeStageCodegen (8)
Sort [COL_136DCAA3_2545_47C9_A61E_86ED7914066D#99929 ASC NULLS FIRST], false, 0
WholeStageCodegen (5)
Exchange hashpartitioning(COL_136DCAA3_2545_47C9_A61E_86ED7914066D#99929, 10), ENSURE_REQUIREMENTS, [plan_id=26905]
Project [COL_136DCAA3_2545_47C9_A61E_86ED7914066D#99929, COL_7F6BA768_8054_4161_B9FA_C8767D1D66AD#99982]
Filter (COL_D50B88DC_7339_47AA_AF53_7DF1382234F8#99926 <=> A)
WholeStageCodegen (4)
Window [collect_set(COL_FF2201D9_E9A4_4F4A_9614_694F74FD5D0F#99949, 0, 0) windowspecdefinition(COL_86264515_64DE_4F5A_B65C_1F224369C11E#99927, 1 DESC NULLS LAST, specifiedwindowframe(RangeFrame, unboundedpreceding$(), currentrow$())) AS COL_7F6BA768_8054_4161_B9FA_C8767D1D66AD#99982], [COL_86264515_64DE_4F5A_B65C_1F224369C11E#99927], [1 DESC NULLS LAST]
Sort [COL_86264515_64DE_4F5A_B65C_1F224369C11E#99927 ASC NULLS FIRST, 1 DESC NULLS LAST], false, 0
WholeStageCodegen (3)
Exchange hashpartitioning(COL_86264515_64DE_4F5A_B65C_1F224369C11E#99927, 10), ENSURE_REQUIREMENTS, [plan_id=26471]
Project [COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#99822 AS COL_D50B88DC_7339_47AA_AF53_7DF1382234F8#99926, COL_0767075F_6D90_4406_A1C5_BC087A39F7CE#99823 AS COL_86264515_64DE_4F5A_B65C_1F224369C11E#99927, COL_1CCAED33_3E69_435E_B522_DAE3B9E63F9D#99825 AS COL_136DCAA3_2545_47C9_A61E_86ED7914066D#99929, str_remove_space(str_if_with_rule(((COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#99822 <=> B) OR (COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#99822 <=> C)), str_extract_middle(COL_B706A975_F287_4DC9_B631_A35735FE936F#99819, 78, 5), null), ONLY_ONE) AS COL_FF2201D9_E9A4_4F4A_9614_694F74FD5D0F#99949]
ColumnarToRow
WholeStageCodegen (1)
FileScan parquet [COL_B706A975_F287_4DC9_B631_A35735FE936F#99819,COL_1ADA21FB_DB08_4A1F_986E_E8E363B14F38#99822,COL_0767075F_6D90_4406_A1C5_BC087A39F7CE#99823,COL_1CCAED33_3E69_435E_B522_DAE3B9E63F9D#99825] Batched: true, DataFilters: [], 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#99763 AS 00_C_PASSAGE_PA_345648_COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#100138, COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#99764 AS 00_C_PASSAGE_PA_345648_COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#100139]
Filter (COL_6B340AEB_6908_4A50_8AD6_FE561D33FBE0#99779 <=> 1)
WholeStageCodegen (7)
Window [row_number() windowspecdefinition(COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#99763, 1 DESC NULLS LAST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS COL_6B340AEB_6908_4A50_8AD6_FE561D33FBE0#99779], [COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#99763], [1 DESC NULLS LAST]
Sort [COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#99763 ASC NULLS FIRST, 1 DESC NULLS LAST], false, 0
WholeStageCodegen (6)
Exchange hashpartitioning(COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#99763, 10), ENSURE_REQUIREMENTS, [plan_id=26490]
Project [Numéro Séjour#99642 AS COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#99763, UF#99643 AS COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#99764]
Filter (NOT CASE WHEN isnull(StartsWith(Numéro Séjour#99642, #)) THEN false ELSE StartsWith(Numéro Séjour#99642, #) END AND isnotnull(Numéro Séjour#99642))
WholeStageCodegen (2)
FileScan csv [Numéro Séjour#99642,UF#99643] Batched: false, DataFilters: [NOT CASE WHEN isnull(StartsWith(Numéro Séjour#99642, #)) THEN false ELSE StartsWith(Numéro Séjou..., 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>