digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
1 [labelType="html" label="<b>Execute InsertIntoHadoopFsRelationCommand</b><br><br>task commit time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 7907.0: task 10646))<br>number of written files: 5<br>job commit time: 16 ms<br>number of output rows: 568,241<br>number of dynamic part: 0<br>written output: 1606.6 KiB"];
2 [labelType="html" label="<br><b>WriteFiles</b><br><br>"];
subgraph cluster3 {
isCluster="true";
label="WholeStageCodegen (7)\n \nduration: total (min, med, max (stageId: taskId))\n1.0 s (181 ms, 221 ms, 225 ms (stage 7907.0: task 10650))";
4 [labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>47 ms (9 ms, 9 ms, 10 ms (stage 7907.0: task 10649))<br>peak memory total (min, med, max (stageId: taskId))<br>100.0 MiB (20.0 MiB, 20.0 MiB, 20.0 MiB (stage 7907.0: task 10646))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 7907.0: task 10646))"];
}
5 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 5<br>partition data size total (min, med, max (stageId: taskId))<br>5.9 MiB (1118.2 KiB, 1192.7 KiB, 1310.1 KiB (driver))<br>number of coalesced partitions: 5"];
6 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 568,241<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>18 ms (2 ms, 2 ms, 6 ms (stage 7902.0: task 10640))<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: 568,241<br>local bytes read total (min, med, max (stageId: taskId))<br>5.7 MiB (1091.8 KiB, 1150.9 KiB, 1236.4 KiB (stage 7907.0: task 10649))<br>fetch wait time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 7907.0: task 10646))<br>remote bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 14<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>38.6 MiB (4.4 MiB, 4.8 MiB, 15.3 MiB (stage 7902.0: task 10640))<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>5.7 MiB (624.8 KiB, 689.5 KiB, 2.4 MiB (stage 7902.0: task 10640))"];
7 [labelType="html" label="<br><b>Union</b><br><br>"];
subgraph cluster8 {
isCluster="true";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n271 ms (104 ms, 167 ms, 167 ms (stage 7902.0: task 10640))";
9 [labelType="html" label="<br><b>Project</b><br><br>"];
10 [labelType="html" label="<b>Generate</b><br><br>number of output rows: 457,734"];
11 [labelType="html" label="<br><b>Project</b><br><br>"];
12 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 152,578"];
}
13 [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 7902.0: task 10640))"];
subgraph cluster14 {
isCluster="true";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n354 ms (145 ms, 209 ms, 209 ms (stage 7902.0: task 10640))";
15 [labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>24 ms (12 ms, 12 ms, 12 ms (stage 7902.0: task 10640))<br>peak memory total (min, med, max (stageId: taskId))<br>36.0 MiB (18.0 MiB, 18.0 MiB, 18.0 MiB (stage 7902.0: task 10640))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 7902.0: task 10640))"];
}
16 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 1470.4 KiB<br>number of coalesced partitions: 1"];
17 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 76,289<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>7 ms (3 ms, 4 ms, 4 ms (stage 7889.0: task 10612))<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: 152,578<br>local bytes read total (min, med, max (stageId: taskId))<br>2.8 MiB (1409.4 KiB, 1409.4 KiB, 1409.4 KiB (stage 7902.0: task 10640))<br>fetch wait time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 7902.0: task 10640))<br>remote bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 4<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>6.6 MiB (1657.6 KiB, 5.0 MiB, 5.0 MiB (stage 7889.0: task 10612))<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>1409.4 KiB (345.9 KiB, 1063.5 KiB, 1063.5 KiB (stage 7889.0: task 10612))"];
subgraph cluster18 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n681 ms (251 ms, 430 ms, 430 ms (stage 7889.0: task 10612))";
19 [labelType="html" label="<br><b>Project</b><br><br>"];
20 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 76,289"];
}
21 [labelType="html" label="<b>Scan csv </b><br><br>number of output rows: 76,289<br>number of files read: 1<br>metadata time: 0 ms<br>size of files read: 5.3 MiB"];
subgraph cluster22 {
isCluster="true";
label="WholeStageCodegen (6)\n \nduration: total (min, med, max (stageId: taskId))\n974 ms (76 ms, 109 ms, 129 ms (stage 7902.0: task 10644))";
23 [labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>305 ms (28 ms, 30 ms, 34 ms (stage 7902.0: task 10641))<br>peak memory total (min, med, max (stageId: taskId))<br>180.0 MiB (18.0 MiB, 18.0 MiB, 18.0 MiB (stage 7902.0: task 10642))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 7902.0: task 10642))"];
}
24 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 5<br>partition data size total (min, med, max (stageId: taskId))<br>5.7 MiB (1095.5 KiB, 1128.3 KiB, 1265.3 KiB (driver))<br>number of coalesced partitions: 5"];
25 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 339,374<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>19 ms (3 ms, 3 ms, 4 ms (stage 7894.0: task 10630))<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: 678,748<br>local bytes read total (min, med, max (stageId: taskId))<br>10.8 MiB (1042.3 KiB, 1083.1 KiB, 1196.8 KiB (stage 7902.0: task 10644))<br>fetch wait time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 7902.0: task 10642))<br>remote bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 50<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>23.3 MiB (4.6 MiB, 4.7 MiB, 4.7 MiB (stage 7894.0: task 10630))<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>5.4 MiB (1103.0 KiB, 1109.5 KiB, 1111.6 KiB (stage 7894.0: task 10629))"];
subgraph cluster26 {
isCluster="true";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n1.0 s (89 ms, 105 ms, 113 ms (stage 7892.0: task 10628))";
27 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build total (min, med, max (stageId: taskId))<br>653 ms (46 ms, 81 ms, 85 ms (stage 7892.0: task 10628))<br>peak memory total (min, med, max (stageId: taskId))<br>162.5 MiB (16.3 MiB, 16.3 MiB, 16.3 MiB (stage 7894.0: task 10631))<br>number of output rows: 678,748<br>number of sort fallback tasks: 0<br>avg hash probes per key (min, med, max (stageId: taskId)):<br>(1.2, 1.3, 1.3 (stage 7894.0: task 10631))"];
}
28 [labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 5<br>partition data size total (min, med, max (stageId: taskId))<br>5.7 MiB (1152.4 KiB, 1169.3 KiB, 1180.5 KiB (driver))<br>number of coalesced partitions: 5"];
29 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 339,374<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>27 ms (2 ms, 2 ms, 3 ms (stage 7890.0: task 10621))<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: 678,748<br>local bytes read total (min, med, max (stageId: taskId))<br>11.0 MiB (1116.6 KiB, 1122.5 KiB, 1124.8 KiB (stage 7894.0: task 10629))<br>fetch wait time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 7894.0: task 10631))<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>23.3 MiB (2.3 MiB, 2.3 MiB, 2.4 MiB (stage 7890.0: task 10614))<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>5.5 MiB (550.4 KiB, 562.2 KiB, 573.4 KiB (stage 7890.0: task 10614))"];
subgraph cluster30 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n2.8 s (244 ms, 294 ms, 300 ms (stage 7890.0: task 10619))";
31 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build total (min, med, max (stageId: taskId))<br>1.6 s (144 ms, 165 ms, 178 ms (stage 7890.0: task 10620))<br>peak memory total (min, med, max (stageId: taskId))<br>162.5 MiB (16.3 MiB, 16.3 MiB, 16.3 MiB (stage 7890.0: task 10623))<br>number of output rows: 339,374<br>number of sort fallback tasks: 0<br>avg hash probes per key (min, med, max (stageId: taskId)):<br>(1, 1, 1 (stage 7890.0: task 10623))"];
32 [labelType="html" label="<br><b>Project</b><br><br>"];
33 [labelType="html" label="<b>Generate</b><br><br>number of output rows: 1,816,395"];
34 [labelType="html" label="<br><b>Project</b><br><br>"];
35 [labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 259,485<br>number of input batches: 70"];
}
36 [labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 10<br>scan time total (min, med, max (stageId: taskId))<br>161 ms (5 ms, 8 ms, 95 ms (stage 7890.0: task 10616))<br>metadata time: 0 ms<br>size of files read: 18.7 MiB<br>number of output rows: 259,485"];
1->0;
2->1;
4->2;
5->4;
6->5;
7->6;
9->7;
10->9;
11->10;
12->11;
13->12;
15->13;
16->15;
17->16;
19->17;
20->19;
21->20;
23->7;
24->23;
25->24;
27->25;
28->27;
29->28;
31->29;
32->31;
33->32;
34->33;
35->34;
36->35;
}
37
AdaptiveSparkPlan isFinalPlan=true
Execute InsertIntoHadoopFsRelationCommand file:/data/output/cache/parquet/datablock/14_B_PASSAGE_PA_188645, false, Parquet, [path=file:///data/output/cache/parquet/datablock/14_B_PASSAGE_PA_188645], Overwrite, [COL_E5ADB260_1BF6_449C_8439_0A94CEE6956C, COL_59774853_4110_4672_B6E2_C0D5DE930914, COL_E58DD17C_E55F_4036_9FA9_A5365B045A1A]
WriteFiles
Sort [COL_E5ADB260_1BF6_449C_8439_0A94CEE6956C#655937 ASC NULLS FIRST, COL_59774853_4110_4672_B6E2_C0D5DE930914#655938 ASC NULLS FIRST], true, 0
WholeStageCodegen (7)
AQEShuffleRead coalesced
Exchange rangepartitioning(COL_E5ADB260_1BF6_449C_8439_0A94CEE6956C#655937 ASC NULLS FIRST, COL_59774853_4110_4672_B6E2_C0D5DE930914#655938 ASC NULLS FIRST, 10), ENSURE_REQUIREMENTS, [plan_id=411110]
Union
Project [COL_DEB05435_3A84_4F8F_8CD2_6BE209A14FA8#655897 AS COL_E5ADB260_1BF6_449C_8439_0A94CEE6956C#655937, col0#655906 AS COL_59774853_4110_4672_B6E2_C0D5DE930914#655938, col1#655907 AS COL_E58DD17C_E55F_4036_9FA9_A5365B045A1A#655939]
Generate stack(3, 01-UF, COL_48FD2AAE_6F4D_4D43_BEE7_8A161203783C#655898, 02-Transport, COL_E0699193_FC70_4F64_BAE6_B2F241857F3B#655899, 03-CCMU, COL_630C2F1A_DB89_4A08_A2D2_179A10CC9FD2#655900), [COL_DEB05435_3A84_4F8F_8CD2_6BE209A14FA8#655897], false, [col0#655906, col1#655907]
Project [COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#655801 AS COL_DEB05435_3A84_4F8F_8CD2_6BE209A14FA8#655897, COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#655802 AS COL_48FD2AAE_6F4D_4D43_BEE7_8A161203783C#655898, COL_E1010A22_775B_43B4_B8CA_4603C0801D28#655803 AS COL_E0699193_FC70_4F64_BAE6_B2F241857F3B#655899, COL_6A6D32F5_2B4E_4DF6_A459_B248882F909D#655804 AS COL_630C2F1A_DB89_4A08_A2D2_179A10CC9FD2#655900]
Filter (COL_6B340AEB_6908_4A50_8AD6_FE561D33FBE0#655817 <=> 1)
WholeStageCodegen (5)
Window [row_number() windowspecdefinition(COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#655801, 1 DESC NULLS LAST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS COL_6B340AEB_6908_4A50_8AD6_FE561D33FBE0#655817], [COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#655801], [1 DESC NULLS LAST]
Sort [COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#655801 ASC NULLS FIRST, 1 DESC NULLS LAST], false, 0
WholeStageCodegen (4)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#655801, 10), ENSURE_REQUIREMENTS, [plan_id=410837]
Project [Numéro Séjour#655685 AS COL_2AF4FE05_74B1_4A24_9BC1_7612D6ED731D#655801, UF#655686 AS COL_E82CFB57_01EB_4E90_836D_4D6F4CA131FE#655802, str_remove_space(Transport admission#655689, ONLY_ONE) AS COL_E1010A22_775B_43B4_B8CA_4603C0801D28#655803, str_remove_space(str_list_get(str_extract_by_regex(Niveau CCMU#655690, [+\d]+), 0), ALL) AS COL_6A6D32F5_2B4E_4DF6_A459_B248882F909D#655804]
Filter NOT CASE WHEN isnull(StartsWith(Numéro Séjour#655685, #)) THEN false ELSE StartsWith(Numéro Séjour#655685, #) END
WholeStageCodegen (1)
FileScan csv [Numéro Séjour#655685,UF#655686,Transport admission#655689,Niveau CCMU#655690] Batched: false, DataFilters: [NOT CASE WHEN isnull(StartsWith(Numéro Séjour#655685, #)) THEN false ELSE StartsWith(Numéro Séjo..., Format: CSV, Location: InMemoryFileIndex(1 paths)[file:/data/input/depot/csv/tmp/02_PASSAGE_PATI_187896/passage_patient_..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<Numéro Séjour:string,UF:string,Transport admission:string,Niveau CCMU:string>
Sort [COL_DC1A3ABF_ADFC_4208_8B24_35ED54CC87DF#655631 ASC NULLS FIRST, COL_EA9AE57C_DE84_4BBE_9131_053814B337F4#655632 ASC NULLS FIRST], true, 0
WholeStageCodegen (6)
AQEShuffleRead coalesced
Exchange rangepartitioning(COL_DC1A3ABF_ADFC_4208_8B24_35ED54CC87DF#655631 ASC NULLS FIRST, COL_EA9AE57C_DE84_4BBE_9131_053814B337F4#655632 ASC NULLS FIRST, 10), ENSURE_REQUIREMENTS, [plan_id=410963]
HashAggregate(keys=[COL_8D7490B1_ED4B_4A07_9680_ECC66DF49E37#655625, COL_7F6B8B23_E564_4B4E_8794_0FC7CE59D60B#655626, COL_B6440F86_8BD4_4AFD_8640_45556688ABB9#655627], functions=[])
WholeStageCodegen (3)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_8D7490B1_ED4B_4A07_9680_ECC66DF49E37#655625, COL_7F6B8B23_E564_4B4E_8794_0FC7CE59D60B#655626, COL_B6440F86_8BD4_4AFD_8640_45556688ABB9#655627, 10), ENSURE_REQUIREMENTS, [plan_id=410866]
HashAggregate(keys=[COL_8D7490B1_ED4B_4A07_9680_ECC66DF49E37#655625, COL_7F6B8B23_E564_4B4E_8794_0FC7CE59D60B#655626, COL_B6440F86_8BD4_4AFD_8640_45556688ABB9#655627], functions=[])
Project [COL_BC7CB40E_B2CA_42C4_94A5_B6AA996E14DC#655586 AS COL_8D7490B1_ED4B_4A07_9680_ECC66DF49E37#655625, col0#655603 AS COL_7F6B8B23_E564_4B4E_8794_0FC7CE59D60B#655626, col1#655604 AS COL_B6440F86_8BD4_4AFD_8640_45556688ABB9#655627]
Generate stack(7, 04-Date Naissance, COL_95E23023_63AA_4AB8_A60F_50D45234CFDD#655587, 05-Date Entree, COL_78B23D10_75E8_415E_A3C0_8AB5C826A837#655588, 06-Date Sortie, COL_885784F8_1772_40E3_89B6_6ACE1FAB6407#655589, 07-Fides, COL_32AA235F_1BB1_4047_B8BA_AD2E9197AD1F#655590, 08-Facturable AM, COL_3BBA8558_C3D5_4921_93AE_D7C9E273B39D#655591, 09-Justif Exo, COL_35788C71_38EE_4A08_B685_AAC68457246A#655592, 10-Nature Ass, COL_6EC95BD9_A121_4728_BE4A_49B7EA2976F2#655593), [COL_BC7CB40E_B2CA_42C4_94A5_B6AA996E14DC#655586], false, [col0#655603, col1#655604]
Project [COL_F76265AB_8748_4114_92B4_00E37DE25D34#655264 AS COL_BC7CB40E_B2CA_42C4_94A5_B6AA996E14DC#655586, COL_9262BBED_C393_416D_B38C_8F1458965BA7#655263 AS COL_95E23023_63AA_4AB8_A60F_50D45234CFDD#655587, COL_96E2282E_0771_460E_8BDB_D11261BD9020#655265 AS COL_78B23D10_75E8_415E_A3C0_8AB5C826A837#655588, COL_12028397_66B1_4E3C_BBDB_64537606E7DE#655266 AS COL_885784F8_1772_40E3_89B6_6ACE1FAB6407#655589, COL_0521CAB9_7617_4F31_948E_95DCA16387D7#655261 AS COL_32AA235F_1BB1_4047_B8BA_AD2E9197AD1F#655590, COL_1DACB81E_AFA5_4BB8_83D7_57DE8B8062B7#655262 AS COL_3BBA8558_C3D5_4921_93AE_D7C9E273B39D#655591, COL_4473F770_A575_4100_97F6_8190F900749A#655270 AS COL_35788C71_38EE_4A08_B685_AAC68457246A#655592, COL_715B3479_EAD2_422C_BF5C_7B020197D946#655271 AS COL_6EC95BD9_A121_4728_BE4A_49B7EA2976F2#655593]
ColumnarToRow
WholeStageCodegen (2)
FileScan parquet [COL_0521CAB9_7617_4F31_948E_95DCA16387D7#655261,COL_1DACB81E_AFA5_4BB8_83D7_57DE8B8062B7#655262,COL_9262BBED_C393_416D_B38C_8F1458965BA7#655263,COL_F76265AB_8748_4114_92B4_00E37DE25D34#655264,COL_96E2282E_0771_460E_8BDB_D11261BD9020#655265,COL_12028397_66B1_4E3C_BBDB_64537606E7DE#655266,COL_4473F770_A575_4100_97F6_8190F900749A#655270,COL_715B3479_EAD2_422C_BF5C_7B020197D946#655271] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/data/output/cache/parquet/datablock/02_A_ELIGIBLE_188318], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<COL_0521CAB9_7617_4F31_948E_95DCA16387D7:string,COL_1DACB81E_AFA5_4BB8_83D7_57DE8B8062B7:s...