raulcd commented on code in PR #48255:
URL: https://github.com/apache/arrow/pull/48255#discussion_r3207634656
##########
python/pyarrow/tests/parquet/test_metadata.py:
##########
@@ -814,3 +814,22 @@ def msg(c):
with pytest.raises(TypeError, match=msg("FileMetaData")):
pq.FileMetaData()
+
+
+def test_read_schema_uuid_extension_type(tmp_path):
+ data = [
+ b'\xe4`\xf9p\x83QGN\xac\x7f\xa4g>K\xa8\xcb',
+ b'\x1et\x14\x95\xee\xd5C\xea\x9b\xd7s\xdc\x91BK\xaf',
Review Comment:
nit: can we add a comment on what is this / how was it generated?
If we ever want to change that or fix a bug in the future it could be useful.
##########
python/pyarrow/tests/parquet/test_metadata.py:
##########
@@ -814,3 +814,22 @@ def msg(c):
with pytest.raises(TypeError, match=msg("FileMetaData")):
pq.FileMetaData()
+
+
+def test_read_schema_uuid_extension_type(tmp_path):
+ data = [
+ b'\xe4`\xf9p\x83QGN\xac\x7f\xa4g>K\xa8\xcb',
+ b'\x1et\x14\x95\xee\xd5C\xea\x9b\xd7s\xdc\x91BK\xaf',
+ None,
+ ]
+ table = pa.table([pa.array(data, type=pa.uuid())], names=["ext"])
+
+ file_path = tmp_path / "uuid.parquet"
+ file_path_str = str(file_path)
+ pq.write_table(table, file_path_str, store_schema=False)
Review Comment:
just curious, is `store_schema=False` relevant?
--
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]