Skip to content

Commit e48b8c8

Browse files
committed
Fix serialization assymetry (writeOptional vs plain read), fixed VerifierTett
1 parent 1c72c2c commit e48b8c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data/LongRangeBlockBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ public TransportVersion getMinimalSupportedVersion() {
180180

181181
@Override
182182
public void writeTo(StreamOutput out) throws IOException {
183-
out.writeOptionalLong(from);
184-
out.writeOptionalLong(to);
183+
out.writeLong(from);
184+
out.writeLong(to);
185185
}
186186
}
187187
}

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/VerifierTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ public void testAggregateOnCounter() {
11681168
assertThat(
11691169
error("FROM test | STATS count(network.bytes_out)", tsdb),
11701170
equalTo(
1171-
"1:19: argument of [count(network.bytes_out)] must be [any type except counter types or dense_vector],"
1171+
"1:19: argument of [count(network.bytes_out)] must be [any type except counter types, dense_vector or date_range],"
11721172
+ " found value [network.bytes_out] type [counter_long]"
11731173
)
11741174
);

0 commit comments

Comments
 (0)