@@ -36,6 +36,9 @@ static const char *ta_list_2023_fall[] = {"skyzh", "yliang412", "ferna
36
36
static const char *ta_list_2024[] = {" AlSchlo" , " walkingcabbages" , " averyqi115" , " lanlou1554" , " sweetsuro" ,
37
37
" ChaosZhai" , " SDTheSlayer" , " xx01cyx" , " yliang412" , " thelongmarch-azx" };
38
38
39
+ static const char *ta_list_2024_fall[] = {" 17zhangw" , " connortsui20" , " J-HowHuang" , " lanlou1554" ,
40
+ " prashanthduvvada" , " unw9527" , " xx01cyx" , " yashkothari42" };
41
+
39
42
static const char *ta_oh_2022[] = {" Tuesday" , " Wednesday" , " Monday" , " Wednesday" , " Thursday" , " Friday" ,
40
43
" Wednesday" , " Randomly" , " Tuesday" , " Monday" , " Tuesday" };
41
44
@@ -48,11 +51,15 @@ static const char *ta_oh_2023_fall[] = {"Randomly", "Tuesday", "Wednesday", "T
48
51
static const char *ta_oh_2024[] = {" Friday" , " Thursday" , " Friday" , " Wednesday" , " Thursday" ,
49
52
" Yesterday" , " Monday" , " Tuesday" , " Tuesday" , " Monday" };
50
53
54
+ static const char *ta_oh_2024_fall[] = {" Wednesday" , " Thursday" , " Tuesday" , " Monday" ,
55
+ " Friday" , " Thursday" , " Tuesday" , " Friday" };
56
+
51
57
static const char *course_on_date[] = {" Monday" , " Tuesday" , " Wednesday" , " Thursday" , " Friday" , " Saturday" , " Sunday" };
52
58
53
59
const char *mock_table_list[] = {" __mock_table_1" , " __mock_table_2" , " __mock_table_3" , " __mock_table_tas_2022" ,
54
60
" __mock_table_tas_2023" , " __mock_table_tas_2023_fall" , " __mock_table_tas_2024" ,
55
- " __mock_agg_input_small" , " __mock_agg_input_big" , " __mock_table_schedule_2022" ,
61
+ " __mock_table_tas_2024_fall" , " __mock_agg_input_small" , " __mock_agg_input_big" ,
62
+ " __mock_external_merge_sort_input" , " __mock_table_schedule_2022" ,
56
63
" __mock_table_schedule" , " __mock_table_123" , " __mock_graph" ,
57
64
// For leaderboard Q1
58
65
" __mock_t1" ,
@@ -94,6 +101,10 @@ auto GetMockTableSchemaOf(const std::string &table) -> Schema {
94
101
return Schema{std::vector{Column{" github_id" , TypeId::VARCHAR, 128 }, Column{" office_hour" , TypeId::VARCHAR, 128 }}};
95
102
}
96
103
104
+ if (table == " __mock_table_tas_2024_fall" ) {
105
+ return Schema{std::vector{Column{" github_id" , TypeId::VARCHAR, 128 }, Column{" office_hour" , TypeId::VARCHAR, 128 }}};
106
+ }
107
+
97
108
if (table == " __mock_table_schedule_2022" ) {
98
109
return Schema{std::vector{Column{" day_of_week" , TypeId::VARCHAR, 128 }, Column{" has_lecture" , TypeId::INTEGER}}};
99
110
}
@@ -108,6 +119,11 @@ auto GetMockTableSchemaOf(const std::string &table) -> Schema {
108
119
Column{" v5" , TypeId::INTEGER}, Column{" v6" , TypeId::VARCHAR, 128 }}};
109
120
}
110
121
122
+ if (table == " __mock_external_merge_sort_input" ) {
123
+ return Schema{
124
+ std::vector{Column{" v1" , TypeId::INTEGER}, Column{" v2" , TypeId::INTEGER}, Column{" v3" , TypeId::INTEGER}}};
125
+ }
126
+
111
127
if (table == " __mock_graph" ) {
112
128
return Schema{std::vector{Column{" src" , TypeId::INTEGER}, Column{" dst" , TypeId::INTEGER},
113
129
Column{" src_label" , TypeId::VARCHAR, 8 }, Column{" dst_label" , TypeId::VARCHAR, 8 },
@@ -182,6 +198,10 @@ auto GetSizeOf(const MockScanPlanNode *plan) -> size_t {
182
198
return sizeof (ta_list_2024) / sizeof (ta_list_2024[0 ]);
183
199
}
184
200
201
+ if (table == " __mock_table_tas_2024_fall" ) {
202
+ return sizeof (ta_list_2024_fall) / sizeof (ta_list_2024_fall[0 ]);
203
+ }
204
+
185
205
if (table == " __mock_table_schedule_2022" ) {
186
206
return sizeof (course_on_date) / sizeof (course_on_date[0 ]);
187
207
}
@@ -198,6 +218,10 @@ auto GetSizeOf(const MockScanPlanNode *plan) -> size_t {
198
218
return 10000 ;
199
219
}
200
220
221
+ if (table == " __mock_external_merge_sort_input" ) {
222
+ return 100000 ;
223
+ }
224
+
201
225
if (table == " __mock_graph" ) {
202
226
return GRAPH_NODE_CNT * GRAPH_NODE_CNT;
203
227
}
@@ -329,6 +353,15 @@ auto GetFunctionOf(const MockScanPlanNode *plan) -> std::function<Tuple(size_t)>
329
353
};
330
354
}
331
355
356
+ if (table == " __mock_table_tas_2024_fall" ) {
357
+ return [plan](size_t cursor) {
358
+ std::vector<Value> values{};
359
+ values.push_back (ValueFactory::GetVarcharValue (ta_list_2024_fall[cursor]));
360
+ values.push_back (ValueFactory::GetVarcharValue (ta_oh_2024_fall[cursor]));
361
+ return Tuple{values, &plan->OutputSchema ()};
362
+ };
363
+ }
364
+
332
365
if (table == " __mock_table_schedule_2022" ) {
333
366
return [plan](size_t cursor) {
334
367
std::vector<Value> values{};
@@ -375,6 +408,16 @@ auto GetFunctionOf(const MockScanPlanNode *plan) -> std::function<Tuple(size_t)>
375
408
};
376
409
}
377
410
411
+ if (table == " __mock_external_merge_sort_input" ) {
412
+ return [plan](size_t cursor) {
413
+ std::vector<Value> values{};
414
+ values.push_back (ValueFactory::GetIntegerValue (cursor));
415
+ values.push_back (ValueFactory::GetIntegerValue ((cursor + 1777 ) % 15000 ));
416
+ values.push_back (ValueFactory::GetIntegerValue ((cursor + 3 ) % 111 ));
417
+ return Tuple{values, &plan->OutputSchema ()};
418
+ };
419
+ }
420
+
378
421
if (table == " __mock_table_123" ) {
379
422
return [plan](size_t cursor) {
380
423
std::vector<Value> values{};
0 commit comments