Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions eval/compiler/flat_expr_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -976,14 +976,14 @@ class FlatExprVisitor : public cel::AstVisitor {
return;
}

StringValue field = cel::StringValue(select_expr.field());
if (auto depth = RecursionEligible(); depth.has_value()) {
auto deps = ExtractRecursiveDependencies();
if (deps.size() != 1) {
SetProgressStatusIfError(absl::InternalError(
"unexpected number of dependencies for select operation."));
return;
}
StringValue field = cel::StringValue(select_expr.field());

SetRecursiveStep(
CreateDirectSelectStep(std::move(deps[0]), std::move(field),
Expand All @@ -994,9 +994,9 @@ class FlatExprVisitor : public cel::AstVisitor {
return;
}

AddStep(CreateSelectStep(select_expr, expr.id(),
options_.enable_empty_wrapper_null_unboxing,
enable_optional_types_));
AddStep(CreateSelectStep(
std::move(field), select_expr.test_only(), expr.id(),
options_.enable_empty_wrapper_null_unboxing, enable_optional_types_));
}

// Call node handler group.
Expand Down
Loading
Loading