james-willis opened a new pull request, #1162:
URL: https://github.com/apache/sedona-db/pull/1162

   ## What changes were proposed in this PR?
   
   Register the alias names that Sedona Spark exposes for the force-dimension 
functions:
   
   - `st_force_2d` — Sedona Spark registers `ST_Force_2D` as a (legacy) name 
alongside `ST_Force2D` 
([Catalog.scala](https://github.com/apache/sedona/blob/master/spark/common/src/main/scala/org/apache/sedona/sql/UDF/Catalog.scala))
   - `st_force3dz` — Sedona Spark registers `ST_Force3DZ` as an alias of 
`ST_Force3D`
   
   This follows the existing alias pattern used by `st_geomfromwkt` 
(`st_geomfromtext`, `st_geometryfromtext`, ...).
   
   ## Why are the changes needed?
   
   Spark SQL written against Sedona (e.g. pipelines using `ST_Force_2D`) 
currently fails with an unknown-function error when run on sedona-db. Alias 
parity makes such SQL portable unchanged.
   
   ## How was this patch tested?
   
   Extended the existing `udf_metadata` test in `st_force_dim.rs` to assert 
both aliases; `cargo test -p sedona-functions st_force_dim` passes.
   
   ## Did this PR include necessary documentation updates?
   
   No documentation change needed — aliases resolve to the documented functions.


-- 
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]

Reply via email to