16
16
17
17
#include " common/exception.h"
18
18
#include " common/util/string_util.h"
19
- #include " execution/expressions/column_value_expression.h"
20
19
#include " type/type_id.h"
21
20
#include " type/value_factory.h"
22
21
@@ -39,6 +38,9 @@ static const char *ta_list_2024[] = {"AlSchlo", "walkingcabbages", "averyqi115
39
38
static const char *ta_list_2024_fall[] = {" 17zhangw" , " connortsui20" , " J-HowHuang" , " lanlou1554" ,
40
39
" prashanthduvvada" , " unw9527" , " xx01cyx" , " yashkothari42" };
41
40
41
+ static const char *ta_list_2025_spring[] = {" AlSchlo" , " carpecodeum" , " ChrisLaspias" , " hyoungjook" ,
42
+ " joesunil123" , " mrwhitezz" , " rmboyce" , " yliang412" };
43
+
42
44
static const char *ta_oh_2022[] = {" Tuesday" , " Wednesday" , " Monday" , " Wednesday" , " Thursday" , " Friday" ,
43
45
" Wednesday" , " Randomly" , " Tuesday" , " Monday" , " Tuesday" };
44
46
@@ -54,21 +56,24 @@ static const char *ta_oh_2024[] = {"Friday", "Thursday", "Friday", "Wednesda
54
56
static const char *ta_oh_2024_fall[] = {" Wednesday" , " Thursday" , " Tuesday" , " Monday" ,
55
57
" Friday" , " Thursday" , " Tuesday" , " Friday" };
56
58
59
+ static const char *ta_oh_2025_spring[] = {" Friday" , " Monday" , " Wednesday" , " Tuesday" ,
60
+ " Friday" , " Thursday" , " Monday" , " Tuesday" };
61
+
57
62
static const char *course_on_date[] = {" Monday" , " Tuesday" , " Wednesday" , " Thursday" , " Friday" , " Saturday" , " Sunday" };
58
63
59
- const char *mock_table_list[] = {" __mock_table_1 " , " __mock_table_2 " , " __mock_table_3 " , " __mock_table_tas_2022 " ,
60
- " __mock_table_tas_2023 " , " __mock_table_tas_2023_fall " , " __mock_table_tas_2024 " ,
61
- " __mock_table_tas_2024_fall " , " __mock_agg_input_small " , " __mock_agg_input_big " ,
62
- " __mock_external_merge_sort_input" , " __mock_table_schedule_2022" ,
63
- " __mock_table_schedule" , " __mock_table_123" , " __mock_graph" ,
64
- // For leaderboard Q1
65
- " __mock_t1" ,
66
- // For leaderboard Q2
67
- " __mock_t4_1m" , " __mock_t5_1m" , " __mock_t6_1m" ,
68
- // For leaderboard Q3
69
- " __mock_t7" , " __mock_t8" , " __mock_t9" ,
70
- // For P3 leaderboard Q4
71
- " __mock_t10" , " __mock_t11" , nullptr };
64
+ const char *mock_table_list[] = {
65
+ " __mock_table_1 " , " __mock_table_2 " , " __mock_table_3 " , " __mock_table_tas_2022 " , " __mock_table_tas_2023 " ,
66
+ " __mock_table_tas_2023_fall " , " __mock_table_tas_2024 " , " __mock_table_tas_2024_fall " , " __mock_table_tas_2025_spring " ,
67
+ " __mock_agg_input_small " , " __mock_agg_input_big " , " __mock_external_merge_sort_input" , " __mock_table_schedule_2022" ,
68
+ " __mock_table_schedule" , " __mock_table_123" , " __mock_graph" ,
69
+ // For leaderboard Q1
70
+ " __mock_t1" ,
71
+ // For leaderboard Q2
72
+ " __mock_t4_1m" , " __mock_t5_1m" , " __mock_t6_1m" ,
73
+ // For leaderboard Q3
74
+ " __mock_t7" , " __mock_t8" , " __mock_t9" ,
75
+ // For P3 leaderboard Q4
76
+ " __mock_t10" , " __mock_t11" , nullptr };
72
77
73
78
static const int GRAPH_NODE_CNT = 10 ;
74
79
@@ -105,6 +110,10 @@ auto GetMockTableSchemaOf(const std::string &table) -> Schema {
105
110
return Schema{std::vector{Column{" github_id" , TypeId::VARCHAR, 128 }, Column{" office_hour" , TypeId::VARCHAR, 128 }}};
106
111
}
107
112
113
+ if (table == " __mock_table_tas_2025_spring" ) {
114
+ return Schema{std::vector{Column{" github_id" , TypeId::VARCHAR, 128 }, Column{" office_hour" , TypeId::VARCHAR, 128 }}};
115
+ }
116
+
108
117
if (table == " __mock_table_schedule_2022" ) {
109
118
return Schema{std::vector{Column{" day_of_week" , TypeId::VARCHAR, 128 }, Column{" has_lecture" , TypeId::INTEGER}}};
110
119
}
@@ -205,6 +214,10 @@ auto GetSizeOf(const MockScanPlanNode *plan) -> size_t {
205
214
return sizeof (ta_list_2024_fall) / sizeof (ta_list_2024_fall[0 ]);
206
215
}
207
216
217
+ if (table == " __mock_table_tas_2025_spring" ) {
218
+ return sizeof (ta_list_2025_spring) / sizeof (ta_list_2025_spring[0 ]);
219
+ }
220
+
208
221
if (table == " __mock_table_schedule_2022" ) {
209
222
return sizeof (course_on_date) / sizeof (course_on_date[0 ]);
210
223
}
@@ -365,6 +378,15 @@ auto GetFunctionOf(const MockScanPlanNode *plan) -> std::function<Tuple(size_t)>
365
378
};
366
379
}
367
380
381
+ if (table == " __mock_table_tas_2025_spring" ) {
382
+ return [plan](size_t cursor) {
383
+ std::vector<Value> values{};
384
+ values.push_back (ValueFactory::GetVarcharValue (ta_list_2025_spring[cursor]));
385
+ values.push_back (ValueFactory::GetVarcharValue (ta_oh_2025_spring[cursor]));
386
+ return Tuple{values, &plan->OutputSchema ()};
387
+ };
388
+ }
389
+
368
390
if (table == " __mock_table_schedule_2022" ) {
369
391
return [plan](size_t cursor) {
370
392
std::vector<Value> values{};
0 commit comments