提交 4b88ccd2 authored 作者: Noel Grandin's avatar Noel Grandin

cannot insert null SpatialKey values into the map

fixes TestSpatial in pagestore mode
上级 b45115c6
...@@ -133,7 +133,7 @@ public class SpatialTreeIndex extends BaseIndex implements SpatialIndex { ...@@ -133,7 +133,7 @@ public class SpatialTreeIndex extends BaseIndex implements SpatialIndex {
} }
Value v = row.getValue(columnIds[0]); Value v = row.getValue(columnIds[0]);
if (v == ValueNull.INSTANCE) { if (v == ValueNull.INSTANCE) {
return null; return new SpatialKey(row.getKey());
} }
Geometry g = ((ValueGeometry) v.convertTo(Value.GEOMETRY)).getGeometryNoCopy(); Geometry g = ((ValueGeometry) v.convertTo(Value.GEOMETRY)).getGeometryNoCopy();
Envelope env = g.getEnvelopeInternal(); Envelope env = g.getEnvelopeInternal();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论