Skip to content

Commit

Permalink
Save work to repro fuzzer failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgpai committed Sep 10, 2024
1 parent cc10dc2 commit 7a923c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion velox/expression/fuzzer/ExpressionFuzzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,9 @@ static void filterSignatures(
for (auto it = input.begin(); it != input.end();) {
if (!nameSet.count(it->first)) {
it = input.erase(it);
} else
} else {
it++;
}
}
}

Expand Down
11 changes: 10 additions & 1 deletion velox/expression/fuzzer/ExpressionFuzzerVerifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,16 @@ void ExpressionFuzzerVerifier::go() {
resultVectors ? BaseVector::copy(*resultVectors) : nullptr,
true, // canThrow
columnsToWrapInLazy);
} catch (const std::exception&) {
} catch (const std::exception& exp) {
auto veloxError = dynamic_cast<const VeloxRuntimeError*>(&exp);
if (veloxError &&
veloxError->message() ==
"Unicode characters are not supported for conversion to integer types") {
LOG(WARNING)
<< "Ignoring conversion of unicode characters to integer types error";
continue;
}

if (options_.findMinimalSubexpression) {
test::computeMinimumSubExpression(
{&execCtx_, {false, ""}},
Expand Down

0 comments on commit 7a923c6

Please sign in to comment.