This is an automated email from the ASF dual-hosted git repository.
paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-db.git
The following commit(s) were added to refs/heads/main by this push:
new ce779e7 feat: Add ST_GeometryFromText alias for ST_GeomFromWKT (#213)
ce779e7 is described below
commit ce779e7831ed71964ffdfbb418b98ec5f0638ae0
Author: ayushjariyal <[email protected]>
AuthorDate: Sun Oct 12 03:22:34 2025 +0530
feat: Add ST_GeometryFromText alias for ST_GeomFromWKT (#213)
---
rust/sedona-functions/src/st_geomfromwkt.rs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/rust/sedona-functions/src/st_geomfromwkt.rs
b/rust/sedona-functions/src/st_geomfromwkt.rs
index 558fbec..c50c955 100644
--- a/rust/sedona-functions/src/st_geomfromwkt.rs
+++ b/rust/sedona-functions/src/st_geomfromwkt.rs
@@ -48,7 +48,10 @@ pub fn st_geomfromwkt_udf() -> SedonaScalarUDF {
Volatility::Immutable,
Some(doc("ST_GeomFromWKT", "Geometry")),
);
- udf.with_aliases(vec!["st_geomfromtext".to_string()])
+ udf.with_aliases(vec![
+ "st_geomfromtext".to_string(),
+ "st_geometryfromtext".to_string(),
+ ])
}
/// ST_GeogFromWKT() UDF implementation
@@ -215,6 +218,7 @@ mod tests {
fn aliases() {
let udf: ScalarUDF = st_geomfromwkt_udf().into();
assert!(udf.aliases().contains(&"st_geomfromtext".to_string()));
+ assert!(udf.aliases().contains(&"st_geometryfromtext".to_string()));
let udf: ScalarUDF = st_geogfromwkt_udf().into();
assert!(udf.aliases().contains(&"st_geogfromtext".to_string()));