File tree 1 file changed +2
-2
lines changed
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/datafeed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ public DatafeedConfig(StreamInput in) throws IOException {
256
256
} else {
257
257
this .types = null ;
258
258
}
259
- if (in .getVersion ().before (Version .CURRENT )) {
259
+ if (in .getVersion ().before (Version .V_6_6_0 )) {
260
260
this .query = QUERY_TRANSFORMER .toMap (in .readNamedWriteable (QueryBuilder .class ));
261
261
this .aggregations = AGG_TRANSFORMER .toMap (in .readOptionalWriteable (AggregatorFactories .Builder ::new ));
262
262
} else {
@@ -380,7 +380,7 @@ public void writeTo(StreamOutput out) throws IOException {
380
380
} else {
381
381
out .writeBoolean (false );
382
382
}
383
- if (out .getVersion ().before (Version .CURRENT )) {
383
+ if (out .getVersion ().before (Version .V_6_6_0 )) {
384
384
out .writeNamedWriteable (getParsedQuery ());
385
385
out .writeOptionalWriteable (getParsedAggregations ());
386
386
} else {
You can’t perform that action at this time.
0 commit comments