Skip to content

Commit a0a4bb6

Browse files
committed
Ensure supportsGrid is true on node deserialization.
1 parent 6493c6c commit a0a4bb6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/spatial/SpatialDisjoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private SpatialDisjoint(Source source, Expression left, Expression right, boolea
113113
}
114114

115115
private SpatialDisjoint(StreamInput in) throws IOException {
116-
super(in, false, false);
116+
super(in, false, false, true);
117117
}
118118

119119
@Override

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/spatial/SpatialIntersects.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private SpatialIntersects(Source source, Expression left, Expression right, bool
111111
}
112112

113113
private SpatialIntersects(StreamInput in) throws IOException {
114-
super(in, false, false);
114+
super(in, false, false, true);
115115
}
116116

117117
@Override

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/spatial/SpatialRelatesFunction.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ protected SpatialRelatesFunction(StreamInput in, boolean leftDocValues, boolean
7474
super(in, leftDocValues, rightDocValues, false, false);
7575
}
7676

77+
protected SpatialRelatesFunction(StreamInput in, boolean leftDocValues, boolean rightDocValues, boolean supportsGrid)
78+
throws IOException {
79+
super(in, leftDocValues, rightDocValues, false, supportsGrid);
80+
}
81+
7782
public abstract ShapeRelation queryRelation();
7883

7984
@Override

0 commit comments

Comments
 (0)