We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4065e3f commit 4155652Copy full SHA for 4155652
axiom/optimizer/ToGraph.cpp
@@ -179,7 +179,7 @@ ExprCP ToGraph::tryFoldConstant(
179
auto typedExpr = queryCtx()->optimization()->toTypedExpr(call);
180
auto exprSet = evaluator_.compile(typedExpr);
181
const auto& first = *exprSet->exprs().front();
182
- if (first.specialFormKind() != velox::exec::SpecialFormKind::kConstant) {
+ if (!first.isConstant()) {
183
return nullptr;
184
}
185
const auto& constantExpr =
0 commit comments