jiayuasu opened a new issue, #2884: URL: https://github.com/apache/sedona/issues/2884
Sub-task of #2877. ## Scope 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`. - `Box2D.expandToInclude` (already merged in #2878) is the merge primitive. - Catalog registration. - Tests: empty input → NULL, single row, mixed empty/non-empty rows, partitioned input. ## Out of scope - `ST_3DExtent` (waits for `Box3D`). - Leave `ST_Envelope_Aggr` untouched for backwards compatibility. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
