diff --git a/cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc b/cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc index 33b51c310e91..39d9b9e26c10 100644 --- a/cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc +++ b/cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc @@ -478,7 +478,7 @@ bool SubstraitToVeloxPlanValidator::validate(const ::substrait::GenerateRel& gen auto rowType = std::make_shared(std::move(names), std::move(types)); std::vector expressions; if (generateRel.has_generator()) { - if (!validateExpression(generateRel.generator(), rowType) { + if (!validateExpression(generateRel.generator(), rowType)) { LOG_VALIDATION_MSG("Input validation fails in GenerateRel."); return false; }