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
Add the ST_Extent(geom) -> Box2D aggregate. Direct PostGIS counterpart.
Reduces a stream of geometries to the union of their bounding boxes. Returns SQL NULL when there are no rows (or all rows are null/empty geometries) — PostGIS-compatible.
Implementation
New ST_Extent aggregator in spark/common/.../expressions/AggregateFunctions.scala, modeled on the existing ST_Envelope_Aggr (same accumulation logic — track running xmin/ymin/xmax/ymax) but returning Box2D instead of an envelope Polygon.
Sub-task of #2877.
Scope
Add the
ST_Extent(geom) -> Box2Daggregate. Direct PostGIS counterpart.Reduces a stream of geometries to the union of their bounding boxes. Returns SQL NULL when there are no rows (or all rows are null/empty geometries) — PostGIS-compatible.
Implementation
ST_Extentaggregator inspark/common/.../expressions/AggregateFunctions.scala, modeled on the existingST_Envelope_Aggr(same accumulation logic — track running xmin/ymin/xmax/ymax) but returningBox2Dinstead of an envelopePolygon.Box2D.expandToInclude(already merged in [GH-2877] Add Box2D type and Box2DUDT #2878) is the merge primitive.Out of scope
ST_3DExtent(waits forBox3D).ST_Envelope_Aggruntouched for backwards compatibility.