You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeValuesSourceBuilder.java
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -72,8 +72,8 @@ public abstract class CompositeValuesSourceBuilder<AB extends CompositeValuesSou
72
72
} else {
73
73
this.missingBucket = false;
74
74
}
75
-
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
76
-
// skip missing value
75
+
if (in.getVersion().before(Version.V_7_0_0_alpha1)) {
76
+
// skip missing value for BWC
77
77
in.readGenericValue();
78
78
}
79
79
this.order = SortOrder.readFromStream(in);
@@ -98,10 +98,11 @@ public final void writeTo(StreamOutput out) throws IOException {
98
98
if (hasValueType) {
99
99
valueType.writeTo(out);
100
100
}
101
-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
101
+
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
102
102
out.writeBoolean(missingBucket);
103
103
}
104
-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
104
+
if (out.getVersion().before(Version.V_7_0_0_alpha1)) {
0 commit comments