Skip to content

Commit

Permalink
rename random_fun to random_val and changes according to the change r…
Browse files Browse the repository at this point in the history
…equest
  • Loading branch information
hmeriann committed Jun 25, 2024
1 parent d97b1ad commit 0fa32b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/statement_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ unique_ptr<TableRef> StatementGenerator::GenerateTableFunctionRef() {
auto random_val = RandomValue(original_val);
auto table_function_ref = &generator_context->table_functions[random_val];
while (table_function_ref->get().type == CatalogType::TABLE_MACRO_ENTRY) {
random_val +=1 % generator_context->table_functions.size();
random_val += 1 % original_val;
if (random_val == original_val) {
throw InternalException("No table_functions to test.");
}
Expand Down

0 comments on commit 0fa32b3

Please sign in to comment.