paleolimbot commented on code in PR #578:
URL: https://github.com/apache/sedona-db/pull/578#discussion_r2776190324
##########
python/sedonadb/tests/test_context.py:
##########
@@ -313,3 +313,79 @@ def test_read_parquet_invalid_azure_option():
match="Unknown Azure option.*azure.unknown_option.*Valid options are",
):
con.read_parquet(url, options={"azure.unknown_option": "value"})
+
+
+def test_read_parquet_validate_wkb_single_valid_row(con, tmp_path):
+ valid_wkb = bytes.fromhex("0101000000000000000000F03F0000000000000040")
+
+ table = pa.table({"id": [1], "geom": [valid_wkb]})
+ path = tmp_path / "single_valid_wkb.parquet"
+ pq.write_table(table, path)
Review Comment:
Optional, but there is a io/test_parquet.py that is possibly a better fit
for these tests (and the geometry_columns tests) since there are now a lot of
them!
--
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]