Skip to content

Commit d4b1b31

Browse files
committed
Merge branch 'master' into f24-p3
2 parents 96d4f4f + 32d7085 commit d4b1b31

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/execution/mock_scan_executor.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,16 @@ auto GetFunctionOf(const MockScanPlanNode *plan) -> std::function<Tuple(size_t)>
418418
};
419419
}
420420

421+
if (table == "__mock_external_merge_sort_input") {
422+
return [plan](size_t cursor) {
423+
std::vector<Value> values{};
424+
values.push_back(ValueFactory::GetIntegerValue(cursor));
425+
values.push_back(ValueFactory::GetIntegerValue((cursor + 1777) % 15000));
426+
values.push_back(ValueFactory::GetIntegerValue((cursor + 3) % 111));
427+
return Tuple{values, &plan->OutputSchema()};
428+
};
429+
}
430+
421431
if (table == "__mock_table_123") {
422432
return [plan](size_t cursor) {
423433
std::vector<Value> values{};

0 commit comments

Comments
 (0)