Skip to content

Commit

Permalink
fix(fuzzer) Fix toSql methods for NestedLoopJoinNode in Reference Que…
Browse files Browse the repository at this point in the history
…ry Runners

Summary: The select clause is completely missing in the produced query string.

Differential Revision: D66132514
  • Loading branch information
Daniel Jonathan Hunte authored and facebook-github-bot committed Dec 6, 2024
1 parent bffc426 commit 29f0bc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions velox/exec/fuzzer/DuckQueryRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@ std::optional<std::string> DuckQueryRunner::toSql(
const auto& outputNames = joinNode->outputType()->names();
std::stringstream sql;

sql << "SELECT " << folly::join(", ", outputNames);

// Nested loop join without filter.
VELOX_CHECK(
joinNode->joinCondition() == nullptr,
Expand Down
2 changes: 2 additions & 0 deletions velox/exec/fuzzer/PrestoQueryRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,8 @@ std::optional<std::string> PrestoQueryRunner::toSql(
const auto& outputNames = joinNode->outputType()->names();
std::stringstream sql;

sql << "SELECT " << folly::join(", ", outputNames);

// Nested loop join without filter.
VELOX_CHECK(
joinNode->joinCondition() == nullptr,
Expand Down

0 comments on commit 29f0bc1

Please sign in to comment.