You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "jiayuasu (via GitHub)" <gi...@apache.org> on 2026/05/02 05:31:02 UTC

[I] [GH-2877] Python bindings for Box2D scalar functions and ST_Extent [sedona]

jiayuasu opened a new issue, #2887:
URL: https://github.com/apache/sedona/issues/2887

   Sub-task of #2877.
   
   ## Scope
   
   Mirror the Phase 1 SQL surface in PySpark wrappers:
   
   - `ST_Box2D(geom)` in `python/sedona/spark/sql/st_functions.py`
   - `ST_MakeBox2D(p1, p2)` in `python/sedona/spark/sql/st_functions.py`
   - `ST_Extent(geom)` in `python/sedona/spark/sql/st_aggregates.py`
   - Accessor overloads (`ST_XMin/XMax/YMin/YMax(box)`) — these wrappers already exist for `Geometry`; verify they pass `Box2D` arguments through cleanly.
   - `ST_AsText(box)` — same as above.
   
   The Python `Box2DType` UDT and `Box2D` value class are already merged in #2878.
   
   ## Implementation
   
   - Each function uses the existing `_call_st_function` helper to dispatch to the JVM-side function.
   - Imports of `Box2DType` / `Box2D` for users who want to construct or assert on bbox columns.
   - Python tests: each function on small DataFrames, NULL propagation, schema check that bbox columns surface as `Box2DType`.
   
   ## Depends on
   
   - #<ST_Box2D issue>
   - #<ST_MakeBox2D issue>
   - #<ST_Extent issue>
   - #<ST_AsText / cast issue> (for ST_AsText only)
   
   (Update with actual numbers once siblings are filed.)


-- 
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: issues-unsubscribe@sedona.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Python bindings for Box2D scalar functions and ST_Extent [sedona]

Posted by "jiayuasu (via GitHub)" <gi...@apache.org>.
jiayuasu closed issue #2887: Python bindings for Box2D scalar functions and ST_Extent
URL: https://github.com/apache/sedona/issues/2887


-- 
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: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org