Skip to content

Commit 23b2aad

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 87ec7ab commit 23b2aad

File tree

2 files changed

+2
-7
lines changed
  • x-pack/plugin/esql/src
    • main/java/org/elasticsearch/xpack/esql/expression/predicate/nulls
    • test/java/org/elasticsearch/xpack/esql/expression/function/scalar/multivalue

2 files changed

+2
-7
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/predicate/nulls/IsNull.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import org.elasticsearch.compute.data.Block;
1313
import org.elasticsearch.compute.data.Page;
1414
import org.elasticsearch.compute.operator.DriverContext;
15-
import org.elasticsearch.compute.operator.EvalOperator;
1615
import org.elasticsearch.compute.operator.EvalOperator.ExpressionEvaluator;
1716
import org.elasticsearch.core.Releasables;
1817
import org.elasticsearch.xpack.esql.capabilities.TranslationAware;
@@ -151,9 +150,7 @@ public String toString() {
151150
}
152151
}
153152

154-
record IsNullEvaluator(DriverContext driverContext, ExpressionEvaluator field)
155-
implements
156-
ExpressionEvaluator {
153+
record IsNullEvaluator(DriverContext driverContext, ExpressionEvaluator field) implements ExpressionEvaluator {
157154
private static final long BASE_RAM_BYTES_USED = RamUsageEstimator.shallowSizeOfInstance(IsNullEvaluator.class);
158155

159156
@Override

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/multivalue/MvContainsTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,7 @@ protected static List<TestCaseSupplier> anyNullIsNull(
341341
);
342342
return new TestCaseSupplier.TestCase(
343343
typeDataWithNull,
344-
nullPosition == 0
345-
? "IsNullEvaluator[field=Attribute[channel=1]]"
346-
: "ConstantTrue",
344+
nullPosition == 0 ? "IsNullEvaluator[field=Attribute[channel=1]]" : "ConstantTrue",
347345
expectedType.expectedType(nullPosition, DataType.BOOLEAN, originalTestCase),
348346
equalTo(nullPosition == 1)
349347
);

0 commit comments

Comments
 (0)