jorisvandenbossche commented on issue #41741:
URL: https://github.com/apache/arrow/issues/41741#issuecomment-2124247844
For IPC it seems to work:
```python
table = pa.Table.from_arrays(
[pa.array([None, None], pa.null())],
schema=pa.schema([pa.field("a", pa.null(),
metadata={"ARROW:extension:name": "arrow.test"})])
)
with pa.ipc.new_file("/tmp/test_ext_no_meta.arrow", table.schema) as f:
f.write(table)
with pa.ipc.open_file("/tmp/test_ext_no_meta.arrow") as f:
result = f.read_all()
print(result.schema)
pa.register_extension_type(DummyExtType())
with pa.ipc.open_file("/tmp/test_ext_no_meta.arrow") as f:
result = f.read_all()
print(result.schema)
```
And the same for write/read Parquet (where we get the extension type from
the ARROW:schema)
--
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]