Skip to content

ES|QL ST_EXTENT_AGG does not handle when rectangle touches dateline #122870

@craigtaverner

Description

@craigtaverner

Two tests in ShapeGeometryFieldMapperTests are disabled due to this bug:

  • ignoreTestGeoBoundsBlockLoader
  • ignoreTestRectangleCrossingDateline

The issue is related to the fact that when we index data with the GeoShapeIndexer the visit(Rectangle) method explicitly deals with dateline crossing, and in particular rectangles that touch the dateline. The aggregation code, on the other hand, does not do this, leading to differences. See SpatialEnvelopeVisitor.GeoPointVisitor.visitRectangle(...).

This bug applies to all releases that support the ST_EXTENT_AGG function, which is everything since 8.18.0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions