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 (2)\n \nduration: 12 ms";
3 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 2 ms<br>peak memory: 16.3 MiB<br>number of output rows: 1,518<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: 18.3 KiB<br>number of coalesced partitions: 1"];
5 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 1,518<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: 1,518<br>local bytes read: 17.7 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: 47.4 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: 17.7 KiB"];
subgraph cluster6 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: 28 ms";
7 [labelType="html" label="<b>HashAggregate</b><br><br>spill size: 0.0 B<br>time in aggregation build: 18 ms<br>peak memory: 256.0 KiB<br>number of output rows: 1,518<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: 12,405"];
10 [labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 15,856<br>number of input batches: 4"];
}
11 [labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 1<br>scan time: 3 ms<br>metadata time: 0 ms<br>size of files read: 785.5 KiB<br>number of output rows: 15,856"];
1->0;
3->1;
4->3;
5->4;
7->5;
8->7;
9->8;
10->9;
11->10;
}
12
AdaptiveSparkPlan isFinalPlan=true
TakeOrderedAndProject(limit=500000, orderBy=[COL_FEC2F711_997D_4A5F_B48C_467CD8CB0210#108093 ASC NULLS FIRST], output=[COL_FEC2F711_997D_4A5F_B48C_467CD8CB0210#108093,COL_A266B709_9C56_4B64_98FE_A9AFE339145C#108169L])
HashAggregate(keys=[COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849], functions=[count(1)])
WholeStageCodegen (2)
AQEShuffleRead coalesced
Exchange hashpartitioning(COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849, 10), ENSURE_REQUIREMENTS, [plan_id=7682]
HashAggregate(keys=[COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849], functions=[partial_count(1)])
Project [COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519 AS COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849]
Filter NOT CASE WHEN isnull(StartsWith(COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519, Z)) THEN false ELSE StartsWith(COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519, Z) END
ColumnarToRow
WholeStageCodegen (1)
FileScan parquet [COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519] Batched: true, DataFilters: [NOT CASE WHEN isnull(StartsWith(COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519, Z)) THEN false ..., Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/data/output/cache/parquet/datablock/RESUME_STANDARD_16262], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F:string>
== Physical Plan ==
AdaptiveSparkPlan (17)
+- == Final Plan ==
TakeOrderedAndProject (10)
+- * HashAggregate (9)
+- AQEShuffleRead (8)
+- ShuffleQueryStage (7), Statistics(sizeInBytes=47.4 KiB, rowCount=1.52E+3)
+- Exchange (6)
+- * HashAggregate (5)
+- * Project (4)
+- * Filter (3)
+- * ColumnarToRow (2)
+- Scan parquet (1)
+- == Initial Plan ==
TakeOrderedAndProject (16)
+- HashAggregate (15)
+- Exchange (14)
+- HashAggregate (13)
+- Project (12)
+- Filter (11)
+- Scan parquet (1)
(1) Scan parquet
Output [1]: [COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519]
Batched: true
Location: InMemoryFileIndex [file:/data/output/cache/parquet/datablock/RESUME_STANDARD_16262]
ReadSchema: struct<COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F:string>
(2) ColumnarToRow [codegen id : 1]
Input [1]: [COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519]
(3) Filter [codegen id : 1]
Input [1]: [COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519]
Condition : NOT CASE WHEN isnull(StartsWith(COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519, Z)) THEN false ELSE StartsWith(COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519, Z) END
(4) Project [codegen id : 1]
Output [1]: [COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519 AS COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849]
Input [1]: [COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519]
(5) HashAggregate [codegen id : 1]
Input [1]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849]
Keys [1]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849]
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#108519L]
Results [2]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849, count#108520L]
(6) Exchange
Input [2]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849, count#108520L]
Arguments: hashpartitioning(COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849, 10), ENSURE_REQUIREMENTS, [plan_id=7682]
(7) ShuffleQueryStage
Output [2]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849, count#108520L]
Arguments: 0
(8) AQEShuffleRead
Input [2]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849, count#108520L]
Arguments: coalesced
(9) HashAggregate [codegen id : 2]
Input [2]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849, count#108520L]
Keys [1]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849]
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#108127L]
Results [2]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849 AS COL_FEC2F711_997D_4A5F_B48C_467CD8CB0210#108093, count(1)#108127L AS COL_A266B709_9C56_4B64_98FE_A9AFE339145C#108169L]
(10) TakeOrderedAndProject
Input [2]: [COL_FEC2F711_997D_4A5F_B48C_467CD8CB0210#108093, COL_A266B709_9C56_4B64_98FE_A9AFE339145C#108169L]
Arguments: 500000, [COL_FEC2F711_997D_4A5F_B48C_467CD8CB0210#108093 ASC NULLS FIRST], [COL_FEC2F711_997D_4A5F_B48C_467CD8CB0210#108093, COL_A266B709_9C56_4B64_98FE_A9AFE339145C#108169L]
(11) Filter
Input [1]: [COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519]
Condition : NOT CASE WHEN isnull(StartsWith(COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519, Z)) THEN false ELSE StartsWith(COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519, Z) END
(12) Project
Output [1]: [COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519 AS COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849]
Input [1]: [COL_3F8D10CE_2046_44B0_8BF3_1F783CD5191F#107519]
(13) HashAggregate
Input [1]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849]
Keys [1]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849]
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#108519L]
Results [2]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849, count#108520L]
(14) Exchange
Input [2]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849, count#108520L]
Arguments: hashpartitioning(COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849, 10), ENSURE_REQUIREMENTS, [plan_id=7659]
(15) HashAggregate
Input [2]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849, count#108520L]
Keys [1]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849]
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#108127L]
Results [2]: [COL_618849B5_07C7_4A90_A24C_76D755E4DC59#107849 AS COL_FEC2F711_997D_4A5F_B48C_467CD8CB0210#108093, count(1)#108127L AS COL_A266B709_9C56_4B64_98FE_A9AFE339145C#108169L]
(16) TakeOrderedAndProject
Input [2]: [COL_FEC2F711_997D_4A5F_B48C_467CD8CB0210#108093, COL_A266B709_9C56_4B64_98FE_A9AFE339145C#108169L]
Arguments: 500000, [COL_FEC2F711_997D_4A5F_B48C_467CD8CB0210#108093 ASC NULLS FIRST], [COL_FEC2F711_997D_4A5F_B48C_467CD8CB0210#108093, COL_A266B709_9C56_4B64_98FE_A9AFE339145C#108169L]
(17) AdaptiveSparkPlan
Output [2]: [COL_FEC2F711_997D_4A5F_B48C_467CD8CB0210#108093, COL_A266B709_9C56_4B64_98FE_A9AFE339145C#108169L]
Arguments: isFinalPlan=true