digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
subgraph cluster1 {
isCluster="true";
label="WholeStageCodegen (2)\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: 4<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>1 ms (0 ms, 0 ms, 0 ms (stage 576.0: task 832))<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: 4<br>local bytes read: 236.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: 4<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>64.0 B (16.0 B, 16.0 B, 16.0 B (stage 576.0: task 823))<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 total (min, med, max (stageId: taskId))<br>236.0 B (59.0 B, 59.0 B, 59.0 B (stage 576.0: task 823))"];
subgraph cluster4 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n4.5 s (550 ms, 1.4 s, 1.6 s (stage 576.0: task 829))";
5 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>4.5 s (550 ms, 1.4 s, 1.6 s (stage 576.0: task 829))<br>number of output rows: 4"];
6 [labelType="html" label="<br><b>Project</b><br><br>"];
7 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 95,008"];
8 [labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 95,008<br>number of input batches: 25"];
}
9 [labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 4<br>scan time total (min, med, max (stageId: taskId))<br>304 ms (38 ms, 70 ms, 158 ms (stage 576.0: task 832))<br>metadata time: 0 ms<br>size of files read: 1761.4 KiB<br>number of output rows: 95,008"];
2->0;
3->2;
5->3;
6->5;
7->6;
8->7;
9->8;
}
10
AdaptiveSparkPlan isFinalPlan=true
HashAggregate(keys=[], functions=[count(1)])
WholeStageCodegen (2)
Exchange SinglePartition, ENSURE_REQUIREMENTS, [plan_id=8768]
HashAggregate(keys=[], functions=[partial_count(1)])
Project
Filter ((((((((((((((CASE WHEN isnull(Contains(str_remove_accent(upper(IPP_IDENTIFIANT_19947#118395)), ME)) THEN false ELSE Contains(str_remove_accent(upper(IPP_IDENTIFIANT_19947#118395)), ME) END OR CASE WHEN isnull(Contains(str_remove_accent(upper(NOM_DE_FAMILLE__19948#118398)), ME)) THEN false ELSE Contains(str_remove_accent(upper(NOM_DE_FAMILLE__19948#118398)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(PRENOM_PATIENT_19949#118401)), ME)) THEN false ELSE Contains(str_remove_accent(upper(PRENOM_PATIENT_19949#118401)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(NOM_DE_NAISSANC_19950#118399)), ME)) THEN false ELSE Contains(str_remove_accent(upper(NOM_DE_NAISSANC_19950#118399)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(NATIONALITE_PAT_19951#118397)), ME)) THEN false ELSE Contains(str_remove_accent(upper(NATIONALITE_PAT_19951#118397)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(TITRE_PATIENT_19953#118403)), ME)) THEN false ELSE Contains(str_remove_accent(upper(TITRE_PATIENT_19953#118403)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(NUMERO_DE_FINES_19955#118400)), ME)) THEN false ELSE Contains(str_remove_accent(upper(NUMERO_DE_FINES_19955#118400)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(INSC_PATIENT_19956#118394)), ME)) THEN false ELSE Contains(str_remove_accent(upper(INSC_PATIENT_19956#118394)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(CODE_ETABLISSEM_19957#118392)), ME)) THEN false ELSE Contains(str_remove_accent(upper(CODE_ETABLISSEM_19957#118392)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(LIBELLE_ETABLIS_19958#118396)), ME)) THEN false ELSE Contains(str_remove_accent(upper(LIBELLE_ETABLIS_19958#118396)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(TRACE_ORIGINE_19959#118404)), ME)) THEN false ELSE Contains(str_remove_accent(upper(TRACE_ORIGINE_19959#118404)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(ORIGINE_19960#118405)), ME)) THEN false ELSE Contains(str_remove_accent(upper(ORIGINE_19960#118405)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(TEST_300328#118406)), ME)) THEN false ELSE Contains(str_remove_accent(upper(TEST_300328#118406)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(TEST_315786#118407)), ME)) THEN false ELSE Contains(str_remove_accent(upper(TEST_315786#118407)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(EXTRAC_CAR_329947#118408)), ME)) THEN false ELSE Contains(str_remove_accent(upper(EXTRAC_CAR_329947#118408)), ME) END)
ColumnarToRow
WholeStageCodegen (1)
FileScan parquet [CODE_ETABLISSEM_19957#118392,INSC_PATIENT_19956#118394,IPP_IDENTIFIANT_19947#118395,LIBELLE_ETABLIS_19958#118396,NATIONALITE_PAT_19951#118397,NOM_DE_FAMILLE__19948#118398,NOM_DE_NAISSANC_19950#118399,NUMERO_DE_FINES_19955#118400,PRENOM_PATIENT_19949#118401,TITRE_PATIENT_19953#118403,TRACE_ORIGINE_19959#118404,ORIGINE_19960#118405,TEST_300328#118406,TEST_315786#118407,EXTRAC_CAR_329947#118408] Batched: true, DataFilters: [((((((((((((((CASE WHEN isnull(Contains(str_remove_accent(upper(IPP_IDENTIFIANT_19947#118395)), ..., Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/data/output/cache/parquet/uet/PATIENT_TOUT_ET_19946], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<CODE_ETABLISSEM_19957:string,INSC_PATIENT_19956:string,IPP_IDENTIFIANT_19947:string,LIBELL...
== Physical Plan ==
AdaptiveSparkPlan (14)
+- == Final Plan ==
* HashAggregate (8)
+- ShuffleQueryStage (7), Statistics(sizeInBytes=64.0 B, rowCount=4)
+- Exchange (6)
+- * HashAggregate (5)
+- * Project (4)
+- * Filter (3)
+- * ColumnarToRow (2)
+- Scan parquet (1)
+- == Initial Plan ==
HashAggregate (13)
+- Exchange (12)
+- HashAggregate (11)
+- Project (10)
+- Filter (9)
+- Scan parquet (1)
(1) Scan parquet
Output [15]: [CODE_ETABLISSEM_19957#118392, INSC_PATIENT_19956#118394, IPP_IDENTIFIANT_19947#118395, LIBELLE_ETABLIS_19958#118396, NATIONALITE_PAT_19951#118397, NOM_DE_FAMILLE__19948#118398, NOM_DE_NAISSANC_19950#118399, NUMERO_DE_FINES_19955#118400, PRENOM_PATIENT_19949#118401, TITRE_PATIENT_19953#118403, TRACE_ORIGINE_19959#118404, ORIGINE_19960#118405, TEST_300328#118406, TEST_315786#118407, EXTRAC_CAR_329947#118408]
Batched: true
Location: InMemoryFileIndex [file:/data/output/cache/parquet/uet/PATIENT_TOUT_ET_19946]
ReadSchema: struct<CODE_ETABLISSEM_19957:string,INSC_PATIENT_19956:string,IPP_IDENTIFIANT_19947:string,LIBELLE_ETABLIS_19958:string,NATIONALITE_PAT_19951:string,NOM_DE_FAMILLE__19948:string,NOM_DE_NAISSANC_19950:string,NUMERO_DE_FINES_19955:string,PRENOM_PATIENT_19949:string,TITRE_PATIENT_19953:string,TRACE_ORIGINE_19959:string,ORIGINE_19960:string,TEST_300328:string,TEST_315786:string,EXTRAC_CAR_329947:string>
(2) ColumnarToRow [codegen id : 1]
Input [15]: [CODE_ETABLISSEM_19957#118392, INSC_PATIENT_19956#118394, IPP_IDENTIFIANT_19947#118395, LIBELLE_ETABLIS_19958#118396, NATIONALITE_PAT_19951#118397, NOM_DE_FAMILLE__19948#118398, NOM_DE_NAISSANC_19950#118399, NUMERO_DE_FINES_19955#118400, PRENOM_PATIENT_19949#118401, TITRE_PATIENT_19953#118403, TRACE_ORIGINE_19959#118404, ORIGINE_19960#118405, TEST_300328#118406, TEST_315786#118407, EXTRAC_CAR_329947#118408]
(3) Filter [codegen id : 1]
Input [15]: [CODE_ETABLISSEM_19957#118392, INSC_PATIENT_19956#118394, IPP_IDENTIFIANT_19947#118395, LIBELLE_ETABLIS_19958#118396, NATIONALITE_PAT_19951#118397, NOM_DE_FAMILLE__19948#118398, NOM_DE_NAISSANC_19950#118399, NUMERO_DE_FINES_19955#118400, PRENOM_PATIENT_19949#118401, TITRE_PATIENT_19953#118403, TRACE_ORIGINE_19959#118404, ORIGINE_19960#118405, TEST_300328#118406, TEST_315786#118407, EXTRAC_CAR_329947#118408]
Condition : ((((((((((((((CASE WHEN isnull(Contains(str_remove_accent(upper(IPP_IDENTIFIANT_19947#118395)), ME)) THEN false ELSE Contains(str_remove_accent(upper(IPP_IDENTIFIANT_19947#118395)), ME) END OR CASE WHEN isnull(Contains(str_remove_accent(upper(NOM_DE_FAMILLE__19948#118398)), ME)) THEN false ELSE Contains(str_remove_accent(upper(NOM_DE_FAMILLE__19948#118398)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(PRENOM_PATIENT_19949#118401)), ME)) THEN false ELSE Contains(str_remove_accent(upper(PRENOM_PATIENT_19949#118401)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(NOM_DE_NAISSANC_19950#118399)), ME)) THEN false ELSE Contains(str_remove_accent(upper(NOM_DE_NAISSANC_19950#118399)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(NATIONALITE_PAT_19951#118397)), ME)) THEN false ELSE Contains(str_remove_accent(upper(NATIONALITE_PAT_19951#118397)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(TITRE_PATIENT_19953#118403)), ME)) THEN false ELSE Contains(str_remove_accent(upper(TITRE_PATIENT_19953#118403)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(NUMERO_DE_FINES_19955#118400)), ME)) THEN false ELSE Contains(str_remove_accent(upper(NUMERO_DE_FINES_19955#118400)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(INSC_PATIENT_19956#118394)), ME)) THEN false ELSE Contains(str_remove_accent(upper(INSC_PATIENT_19956#118394)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(CODE_ETABLISSEM_19957#118392)), ME)) THEN false ELSE Contains(str_remove_accent(upper(CODE_ETABLISSEM_19957#118392)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(LIBELLE_ETABLIS_19958#118396)), ME)) THEN false ELSE Contains(str_remove_accent(upper(LIBELLE_ETABLIS_19958#118396)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(TRACE_ORIGINE_19959#118404)), ME)) THEN false ELSE Contains(str_remove_accent(upper(TRACE_ORIGINE_19959#118404)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(ORIGINE_19960#118405)), ME)) THEN false ELSE Contains(str_remove_accent(upper(ORIGINE_19960#118405)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(TEST_300328#118406)), ME)) THEN false ELSE Contains(str_remove_accent(upper(TEST_300328#118406)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(TEST_315786#118407)), ME)) THEN false ELSE Contains(str_remove_accent(upper(TEST_315786#118407)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(EXTRAC_CAR_329947#118408)), ME)) THEN false ELSE Contains(str_remove_accent(upper(EXTRAC_CAR_329947#118408)), ME) END)
(4) Project [codegen id : 1]
Output: []
Input [15]: [CODE_ETABLISSEM_19957#118392, INSC_PATIENT_19956#118394, IPP_IDENTIFIANT_19947#118395, LIBELLE_ETABLIS_19958#118396, NATIONALITE_PAT_19951#118397, NOM_DE_FAMILLE__19948#118398, NOM_DE_NAISSANC_19950#118399, NUMERO_DE_FINES_19955#118400, PRENOM_PATIENT_19949#118401, TITRE_PATIENT_19953#118403, TRACE_ORIGINE_19959#118404, ORIGINE_19960#118405, TEST_300328#118406, TEST_315786#118407, EXTRAC_CAR_329947#118408]
(5) HashAggregate [codegen id : 1]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#118642L]
Results [1]: [count#118643L]
(6) Exchange
Input [1]: [count#118643L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=8768]
(7) ShuffleQueryStage
Output [1]: [count#118643L]
Arguments: 0
(8) HashAggregate [codegen id : 2]
Input [1]: [count#118643L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#118606L]
Results [1]: [count(1)#118606L AS COL_064925f4-e71f-413f-90b5-ed3cf90817f0#118608L]
(9) Filter
Input [15]: [CODE_ETABLISSEM_19957#118392, INSC_PATIENT_19956#118394, IPP_IDENTIFIANT_19947#118395, LIBELLE_ETABLIS_19958#118396, NATIONALITE_PAT_19951#118397, NOM_DE_FAMILLE__19948#118398, NOM_DE_NAISSANC_19950#118399, NUMERO_DE_FINES_19955#118400, PRENOM_PATIENT_19949#118401, TITRE_PATIENT_19953#118403, TRACE_ORIGINE_19959#118404, ORIGINE_19960#118405, TEST_300328#118406, TEST_315786#118407, EXTRAC_CAR_329947#118408]
Condition : ((((((((((((((CASE WHEN isnull(Contains(str_remove_accent(upper(IPP_IDENTIFIANT_19947#118395)), ME)) THEN false ELSE Contains(str_remove_accent(upper(IPP_IDENTIFIANT_19947#118395)), ME) END OR CASE WHEN isnull(Contains(str_remove_accent(upper(NOM_DE_FAMILLE__19948#118398)), ME)) THEN false ELSE Contains(str_remove_accent(upper(NOM_DE_FAMILLE__19948#118398)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(PRENOM_PATIENT_19949#118401)), ME)) THEN false ELSE Contains(str_remove_accent(upper(PRENOM_PATIENT_19949#118401)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(NOM_DE_NAISSANC_19950#118399)), ME)) THEN false ELSE Contains(str_remove_accent(upper(NOM_DE_NAISSANC_19950#118399)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(NATIONALITE_PAT_19951#118397)), ME)) THEN false ELSE Contains(str_remove_accent(upper(NATIONALITE_PAT_19951#118397)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(TITRE_PATIENT_19953#118403)), ME)) THEN false ELSE Contains(str_remove_accent(upper(TITRE_PATIENT_19953#118403)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(NUMERO_DE_FINES_19955#118400)), ME)) THEN false ELSE Contains(str_remove_accent(upper(NUMERO_DE_FINES_19955#118400)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(INSC_PATIENT_19956#118394)), ME)) THEN false ELSE Contains(str_remove_accent(upper(INSC_PATIENT_19956#118394)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(CODE_ETABLISSEM_19957#118392)), ME)) THEN false ELSE Contains(str_remove_accent(upper(CODE_ETABLISSEM_19957#118392)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(LIBELLE_ETABLIS_19958#118396)), ME)) THEN false ELSE Contains(str_remove_accent(upper(LIBELLE_ETABLIS_19958#118396)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(TRACE_ORIGINE_19959#118404)), ME)) THEN false ELSE Contains(str_remove_accent(upper(TRACE_ORIGINE_19959#118404)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(ORIGINE_19960#118405)), ME)) THEN false ELSE Contains(str_remove_accent(upper(ORIGINE_19960#118405)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(TEST_300328#118406)), ME)) THEN false ELSE Contains(str_remove_accent(upper(TEST_300328#118406)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(TEST_315786#118407)), ME)) THEN false ELSE Contains(str_remove_accent(upper(TEST_315786#118407)), ME) END) OR CASE WHEN isnull(Contains(str_remove_accent(upper(EXTRAC_CAR_329947#118408)), ME)) THEN false ELSE Contains(str_remove_accent(upper(EXTRAC_CAR_329947#118408)), ME) END)
(10) Project
Output: []
Input [15]: [CODE_ETABLISSEM_19957#118392, INSC_PATIENT_19956#118394, IPP_IDENTIFIANT_19947#118395, LIBELLE_ETABLIS_19958#118396, NATIONALITE_PAT_19951#118397, NOM_DE_FAMILLE__19948#118398, NOM_DE_NAISSANC_19950#118399, NUMERO_DE_FINES_19955#118400, PRENOM_PATIENT_19949#118401, TITRE_PATIENT_19953#118403, TRACE_ORIGINE_19959#118404, ORIGINE_19960#118405, TEST_300328#118406, TEST_315786#118407, EXTRAC_CAR_329947#118408]
(11) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#118642L]
Results [1]: [count#118643L]
(12) Exchange
Input [1]: [count#118643L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=8745]
(13) HashAggregate
Input [1]: [count#118643L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#118606L]
Results [1]: [count(1)#118606L AS COL_064925f4-e71f-413f-90b5-ed3cf90817f0#118608L]
(14) AdaptiveSparkPlan
Output [1]: [COL_064925f4-e71f-413f-90b5-ed3cf90817f0#118608L]
Arguments: isFinalPlan=true