Skip to content

Commit f0fffd3

Browse files
committed
[native] Fix constant in lookup condition parsing
1 parent a35b9fc commit f0fffd3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

presto-native-execution/presto_cpp/main/types/PrestoToVeloxQueryPlan.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,9 +2340,8 @@ void parseIndexLookupCondition(
23402340
VELOX_CHECK_NOT_NULL(
23412341
keyColumnExpr, "{}", toJsonString(contains->arguments[1]));
23422342

2343-
const auto conditionColumnExpr = exprConverter.toVeloxExpr(
2344-
std::dynamic_pointer_cast<protocol::VariableReferenceExpression>(
2345-
contains->arguments[0]));
2343+
const auto conditionColumnExpr =
2344+
exprConverter.toVeloxExpr(contains->arguments[0]);
23462345
VELOX_CHECK(
23472346
acceptConstant || !core::TypedExprs::isConstant(conditionColumnExpr),
23482347
"The condition column needs to be not constant: {}",

0 commit comments

Comments
 (0)