Skip to content

Commit

Permalink
refactor(RowNumberFuzzer): Flatten inputs only if needed (#12097)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #12097

Reviewed By: kKPulla

Differential Revision: D68470681

Pulled By: xiaoxmeng

fbshipit-source-id: 7de3baf1e8dde715833d980dc5b07c27ed56d7f7
  • Loading branch information
aditi-pandit authored and facebook-github-bot committed Jan 25, 2025
1 parent dea4758 commit 6010f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions velox/exec/fuzzer/RowNumberFuzzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@ void RowNumberFuzzer::addPlansWithTableScan(
void RowNumberFuzzer::verify() {
const auto [keyNames, keyTypes] = generatePartitionKeys();
const auto input = generateInput(keyNames, keyTypes);
// Flatten inputs.
const auto flatInput = flatten(input);

if (VLOG_IS_ON(1)) {
// Flatten inputs.
const auto flatInput = flatten(input);
VLOG(1) << "Input: " << input[0]->toString();
for (const auto& v : flatInput) {
VLOG(1) << std::endl << v->toString(0, v->size());
Expand Down

0 comments on commit 6010f95

Please sign in to comment.