jesspav commented on code in PR #38:
URL: https://github.com/apache/sedona-db/pull/38#discussion_r2337830781


##########
python/sedonadb/tests/functions/test_transforms.py:
##########
@@ -64,3 +80,15 @@ def test_st_setcrs_sedonadb(eng, geom, crs, expected_srid):
     result = eng.execute_and_collect(f"SELECT ST_SetCrs({geom_or_null(geom)}, 
'{crs}')")
     df = eng.result_to_pandas(result)
     assert df.crs.to_epsg() == expected_srid
+
[email protected]("eng", [SedonaDB])
+def test_st_crs_sedonadb(eng):
+    eng = eng.create_or_skip()
+    eng.assert_query_result(
+        f"SELECT ST_CRS(ST_SetCrs(ST_GeomFromText('POINT (1 1)'), 
'EPSG:26920'))",
+        "\"EPSG:26920\""
+    )
+    eng.assert_query_result(
+        f"SELECT ST_CRS(ST_SetCrs(ST_GeomFromText('POINT (1 1)'), NULL))",
+        None,
+    )

Review Comment:
   fixed in next revision.



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