Skip to content

Commit aa4ffbf

Browse files
committed
Fix EvalMapper
1 parent a437da3 commit aa4ffbf

File tree

1 file changed

+3
-3
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/evaluator

1 file changed

+3
-3
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/evaluator/EvalMapper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public void close() {
177177
static class Nots extends ExpressionMapper<Not> {
178178
@Override
179179
public ExpressionEvaluator.Factory map(FoldContext foldCtx, Not not, Layout layout, List<ShardContext> shardContexts) {
180-
var expEval = toEvaluator(foldCtx, not.field(), layout);
180+
var expEval = toEvaluator(foldCtx, not.field(), layout, shardContexts);
181181
return dvrCtx -> new org.elasticsearch.xpack.esql.evaluator.predicate.operator.logical.NotEvaluator(
182182
not.source(),
183183
expEval.get(dvrCtx),
@@ -281,7 +281,7 @@ static class IsNulls extends ExpressionMapper<IsNull> {
281281

282282
@Override
283283
public ExpressionEvaluator.Factory map(FoldContext foldCtx, IsNull isNull, Layout layout, List<ShardContext> shardContexts) {
284-
var field = toEvaluator(foldCtx, isNull.field(), layout);
284+
var field = toEvaluator(foldCtx, isNull.field(), layout, shardContexts);
285285
return new IsNullEvaluatorFactory(field);
286286
}
287287

@@ -329,7 +329,7 @@ static class IsNotNulls extends ExpressionMapper<IsNotNull> {
329329

330330
@Override
331331
public ExpressionEvaluator.Factory map(FoldContext foldCtx, IsNotNull isNotNull, Layout layout, List<ShardContext> shardContexts) {
332-
return new IsNotNullEvaluatorFactory(toEvaluator(foldCtx, isNotNull.field(), layout));
332+
return new IsNotNullEvaluatorFactory(toEvaluator(foldCtx, isNotNull.field(), layout, shardContexts));
333333
}
334334

335335
record IsNotNullEvaluatorFactory(EvalOperator.ExpressionEvaluator.Factory field) implements ExpressionEvaluator.Factory {

0 commit comments

Comments
 (0)