Skip to content

Commit 2a16acd

Browse files
peterenescufacebook-github-bot
authored andcommitted
feat(fuzzer): Add cogwheel expression fuzzer sot test (facebookincubator#12592)
Summary: Adds cogwheel expression fuzzer sot test now that we have added Presto flag as an input to the internal expression fuzzer runs: D70211086: feat(fuzzer): Add presto_url to presto_expression_fuzzer. Reviewed By: kagamiori Differential Revision: D70417936
1 parent ee23d0e commit 2a16acd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

velox/exec/fuzzer/ToSQLUtil.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,15 @@ std::string toCallSql(const core::CallTypedExprPtr& call) {
179179
}
180180
sql << ")";
181181
} else if (call->name() == "like") {
182+
sql << "(";
182183
toCallInputsSql({call->inputs()[0]}, sql);
183184
sql << " like ";
184185
toCallInputsSql({call->inputs()[1]}, sql);
185186
if (call->inputs().size() == 3) {
186187
sql << " escape ";
187188
toCallInputsSql({call->inputs()[2]}, sql);
188189
}
190+
sql << ")";
189191
} else if (call->name() == "or" || call->name() == "and") {
190192
sql << "(";
191193
const auto& inputs = call->inputs();

0 commit comments

Comments
 (0)