Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Kwok <[email protected]>
  • Loading branch information
andy-k-improving committed Jan 10, 2025
1 parent b7acfe1 commit 302ed85
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@ public PhysicalPlan visitRemove(RemoveOperator node, Object context) {

@Override
public PhysicalPlan visitEval(EvalOperator node, Object context) {
OpenSearchEvalOperator evalOperator = (OpenSearchEvalOperator) node;
return doProtect(
new OpenSearchEvalOperator(
visitInput(evalOperator.getInput(), context),
evalOperator.getExpressionList(),
evalOperator.getNodeClient()));
if (node instanceof OpenSearchEvalOperator evalOperator) {
return doProtect(
new OpenSearchEvalOperator(
visitInput(evalOperator.getInput(), context),
evalOperator.getExpressionList(),
evalOperator.getNodeClient()));
}
return new EvalOperator(visitInput(node.getInput(), context), node.getExpressionList());
}

@Override
Expand Down

0 comments on commit 302ed85

Please sign in to comment.