digraph G {
0 [labelType="html" label="<br><b>TakeOrderedAndProject</b><br><br>"];
subgraph cluster1 {
isCluster="true";
label="WholeStageCodegen (7)\n \nduration: total (min, med, max (stageId: taskId))\n316 ms (0 ms, 0 ms, 18 ms (stage 16.0: task 831))";
2 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>89 ms (0 ms, 0 ms, 7 ms (stage 16.0: task 835))<br>peak memory total (min, med, max (stageId: taskId))<br>1650.0 MiB (256.0 KiB, 256.0 KiB, 64.3 MiB (stage 16.0: task 834))<br>number of output rows: 30<br>avg hash probe bucket list iters (min, med, max (stageId: taskId)):<br>(1, 1, 1 (stage 16.0: task 834))"];
}
3 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 6,000<br>shuffle write time total (min, med, max (stageId: taskId))<br>921 ms (3 ms, 3 ms, 16 ms (stage 15.0: task 631))<br>records read: 6,000<br>local bytes read total (min, med, max (stageId: taskId))<br>223.8 KiB (0.0 B, 0.0 B, 12.6 KiB (stage 16.0: task 832))<br>fetch wait time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 16.0: task 834))<br>remote bytes read total (min, med, max (stageId: taskId))<br>206.2 KiB (0.0 B, 0.0 B, 15.0 KiB (stage 16.0: task 850))<br>local blocks read: 2,625<br>remote blocks read: 2,375<br>data size total (min, med, max (stageId: taskId))<br>281.3 KiB (1440.0 B, 1440.0 B, 1440.0 B (stage 15.0: task 632))<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>430.0 KiB (2.1 KiB, 2.1 KiB, 2.2 KiB (stage 15.0: task 719))"];
subgraph cluster4 {
isCluster="true";
label="WholeStageCodegen (6)\n \nduration: total (min, med, max (stageId: taskId))\n2.9 s (7 ms, 12 ms, 134 ms (stage 15.0: task 763))";
5 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>1.1 s (2 ms, 4 ms, 125 ms (stage 15.0: task 764))<br>peak memory total (min, med, max (stageId: taskId))<br>50.0 MiB (256.0 KiB, 256.0 KiB, 256.0 KiB (stage 15.0: task 632))<br>number of output rows: 6,000"];
6 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>903 ms (2 ms, 3 ms, 125 ms (stage 15.0: task 764))<br>peak memory total (min, med, max (stageId: taskId))<br>12.5 GiB (64.3 MiB, 64.3 MiB, 64.3 MiB (stage 15.0: task 632))<br>number of output rows: 81,749<br>avg hash probe bucket list iters (min, med, max (stageId: taskId)):<br>(1, 1, 1 (stage 15.0: task 632))"];
}
7 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 139,568<br>shuffle write time total (min, med, max (stageId: taskId))<br>2.6 s (9 ms, 11 ms, 27 ms (stage 14.0: task 467))<br>records read: 139,568<br>local bytes read total (min, med, max (stageId: taskId))<br>4.6 MiB (12.6 KiB, 24.3 KiB, 43.3 KiB (stage 15.0: task 795))<br>fetch wait time total (min, med, max (stageId: taskId))<br>203 ms (0 ms, 0 ms, 116 ms (stage 15.0: task 764))<br>remote bytes read total (min, med, max (stageId: taskId))<br>4.1 MiB (12.1 KiB, 18.2 KiB, 37.5 KiB (stage 15.0: task 698))<br>local blocks read: 20,591<br>remote blocks read: 18,152<br>data size total (min, med, max (stageId: taskId))<br>11.4 MiB (43.3 KiB, 57.9 KiB, 75.1 KiB (stage 14.0: task 529))<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>8.7 MiB (35.9 KiB, 44.0 KiB, 52.7 KiB (stage 14.0: task 529))"];
subgraph cluster8 {
isCluster="true";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n5.2 s (13 ms, 22 ms, 151 ms (stage 14.0: task 438))";
9 [labelType="html" label="<b>HashAggregate</b><br><br>time in aggregation build total (min, med, max (stageId: taskId))<br>924 ms (1 ms, 2 ms, 107 ms (stage 14.0: task 439))<br>peak memory total (min, med, max (stageId: taskId))<br>12.5 GiB (64.3 MiB, 64.3 MiB, 64.3 MiB (stage 14.0: task 432))<br>number of output rows: 139,568<br>avg hash probe bucket list iters (min, med, max (stageId: taskId)):<br>(1, 1, 1.1 (stage 14.0: task 496))"];
10 [labelType="html" label="<b>Expand</b><br><br>number of output rows: 347,610"];
11 [labelType="html" label="<br><b>Project</b><br><br>"];
12 [labelType="html" label="<b>SortMergeJoin</b><br><br>number of output rows: 173,805"];
}
subgraph cluster13 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: total (min, med, max (stageId: taskId))\n1.2 s (0 ms, 5 ms, 119 ms (stage 14.0: task 431))";
14 [labelType="html" label="<b>Sort</b><br><br>sort time total (min, med, max (stageId: taskId))<br>15 ms (0 ms, 0 ms, 8 ms (stage 14.0: task 608))<br>peak memory total (min, med, max (stageId: taskId))<br>12.5 GiB (64.1 MiB, 64.1 MiB, 64.1 MiB (stage 14.0: task 432))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 14.0: task 432))"];
}
15 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 504,708<br>shuffle write time total (min, med, max (stageId: taskId))<br>65 ms (26 ms, 39 ms, 39 ms (stage 12.0: task 425))<br>records read: 504,708<br>local bytes read total (min, med, max (stageId: taskId))<br>10.7 MiB (45.1 KiB, 54.6 KiB, 70.7 KiB (stage 14.0: task 540))<br>fetch wait time total (min, med, max (stageId: taskId))<br>198 ms (0 ms, 0 ms, 103 ms (stage 14.0: task 439))<br>remote bytes read total (min, med, max (stageId: taskId))<br>10.5 MiB (44.8 KiB, 53.0 KiB, 64.9 KiB (stage 14.0: task 579))<br>local blocks read: 200<br>remote blocks read: 200<br>data size total (min, med, max (stageId: taskId))<br>69.3 MiB (32.5 MiB, 36.8 MiB, 36.8 MiB (stage 12.0: task 424))<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>21.2 MiB (10.0 MiB, 11.2 MiB, 11.2 MiB (stage 12.0: task 424))"];
subgraph cluster16 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n3.9 s (1.7 s, 2.2 s, 2.2 s (stage 12.0: task 425))";
17 [labelType="html" label="<br><b>Project</b><br><br>"];
18 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 504,708"];
}
19 [labelType="html" label="<b>Scan csv </b><br><br>number of files read: 1<br>metadata time: 0 ms<br>size of files read: 173.6 MiB<br>number of output rows: 504,708"];
subgraph cluster20 {
isCluster="true";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n1.3 s (0 ms, 4 ms, 170 ms (stage 14.0: task 490))";
21 [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 14.0: task 432))<br>peak memory total (min, med, max (stageId: taskId))<br>12.5 GiB (64.1 MiB, 64.1 MiB, 64.1 MiB (stage 14.0: task 432))<br>spill size total (min, med, max (stageId: taskId))<br>0.0 B (0.0 B, 0.0 B, 0.0 B (stage 14.0: task 432))"];
}
22 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 144,178<br>shuffle write time total (min, med, max (stageId: taskId))<br>45 ms (0 ms, 0 ms, 27 ms (stage 13.0: task 427))<br>records read: 144,178<br>local bytes read total (min, med, max (stageId: taskId))<br>5.0 MiB (20.1 KiB, 25.1 KiB, 31.6 KiB (stage 14.0: task 510))<br>fetch wait time total (min, med, max (stageId: taskId))<br>76 ms (0 ms, 0 ms, 76 ms (stage 14.0: task 490))<br>remote bytes read total (min, med, max (stageId: taskId))<br>5.1 MiB (22.3 KiB, 26.4 KiB, 31.6 KiB (stage 14.0: task 466))<br>local blocks read: 200<br>remote blocks read: 200<br>data size total (min, med, max (stageId: taskId))<br>16.5 MiB (0.0 B, 0.0 B, 8.8 MiB (stage 13.0: task 427))<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>10.1 MiB (0.0 B, 0.0 B, 5.4 MiB (stage 13.0: task 427))"];
subgraph cluster23 {
isCluster="true";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n9.8 s (144 ms, 2.0 s, 3.1 s (stage 13.0: task 427))";
24 [labelType="html" label="<br><b>Project</b><br><br>"];
25 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 144,178"];
}
26 [labelType="html" label="<b>Scan csv </b><br><br>number of files read: 1<br>metadata time: 0 ms<br>size of files read: 519.0 MiB<br>number of output rows: 500,001"];
2->0;
3->2;
5->3;
6->5;
7->6;
9->7;
10->9;
11->10;
12->11;
14->12;
15->14;
17->15;
18->17;
19->18;
21->12;
22->21;
24->22;
25->24;
26->25;
}
27
TakeOrderedAndProject(limit=21, orderBy=[formatted_date#136 ASC NULLS FIRST], output=[formatted_date#136,block_count#362,unique_senders_count_number#363])
HashAggregate(keys=[formatted_date#136], functions=[count(if ((gid#367 = 1)) `number`#368 else null), count(if ((gid#367 = 2)) `from_address`#369 else null)])
WholeStageCodegen (7)
Exchange hashpartitioning(formatted_date#136, 200), true, [id=#244]
HashAggregate(keys=[formatted_date#136], functions=[partial_count(if ((gid#367 = 1)) `number`#368 else null), partial_count(if ((gid#367 = 2)) `from_address`#369 else null)])
HashAggregate(keys=[formatted_date#136, `number`#368, `from_address`#369, gid#367], functions=[])
WholeStageCodegen (6)
Exchange hashpartitioning(formatted_date#136, `number`#368, `from_address`#369, gid#367, 200), true, [id=#239]
HashAggregate(keys=[formatted_date#136, `number`#368, `from_address`#369, gid#367], functions=[])
Expand [ArrayBuffer(formatted_date#136, number#16, null, 1), ArrayBuffer(formatted_date#136, null, from_address#75, 2)], [formatted_date#136, `number`#368, `from_address`#369, gid#367]
Project [from_address#75, number#16, formatted_date#136]
SortMergeJoin [block_hash#72], [hash#17], Inner
WholeStageCodegen (5)
Sort [block_hash#72 ASC NULLS FIRST], false, 0
WholeStageCodegen (2)
Exchange hashpartitioning(block_hash#72, 200), true, [id=#220]
Project [block_hash#72, from_address#75]
Filter isnotnull(block_hash#72)
WholeStageCodegen (1)
FileScan csv [block_hash#72,from_address#75] Batched: false, DataFilters: [isnotnull(block_hash#72)], Format: CSV, Location: InMemoryFileIndex[s3a://data-repository-bkt/ECS765/ethereum/transactions.csv], PartitionFilters: [], PushedFilters: [IsNotNull(block_hash)], ReadSchema: struct<block_hash:string,from_address:string>
Sort [hash#17 ASC NULLS FIRST], false, 0
WholeStageCodegen (4)
Exchange hashpartitioning(hash#17, 200), true, [id=#229]
Project [number#16, hash#17, date_format(cast(from_unixtime(cast(timestamp#32 as bigint), yyyy-MM-dd HH:mm:ss, Some(GMT)) as timestamp), yyyy-MM-dd, Some(GMT)) AS formatted_date#136]
Filter ((date_format(cast(from_unixtime(cast(timestamp#32 as bigint), yyyy-MM-dd HH:mm:ss, Some(GMT)) as timestamp), yyyy-MM, Some(GMT)) = 2015-09) AND isnotnull(hash#17))
WholeStageCodegen (3)
FileScan csv [number#16,hash#17,timestamp#32] Batched: false, DataFilters: [(date_format(cast(from_unixtime(cast(timestamp#32 as bigint), yyyy-MM-dd HH:mm:ss, Some(GMT)) as..., Format: CSV, Location: InMemoryFileIndex[s3a://data-repository-bkt/ECS765/ethereum/blocks.csv], PartitionFilters: [], PushedFilters: [IsNotNull(hash)], ReadSchema: struct<number:int,hash:string,timestamp:int>