jorisvandenbossche commented on issue #41764:
URL: https://github.com/apache/arrow/issues/41764#issuecomment-2123367801
You can actually reproduce this easily with the new float16 logical type, by
writing it with the latest Arrow:
```python
>>> table = pa.table({"a":np.array([0.1, 0.2], "float16")})
>>> pq.write_table(table, "/tmp/test_float16.parquet")
>>> pq.read_metadata("/tmp/test_float16.parquet").schema
<pyarrow._parquet.ParquetSchema object at 0x7ff5a53d6140>
required group field_id=-1 schema {
optional fixed_len_byte_array(2) field_id=-1 a (Float16);
}
```
and reading that file with an older version:
```python
>>> pq.read_metadata("/tmp/test_float16.parquet").schema
...
OSError: Metadata contains Thrift LogicalType that is not recognized
```
So also regardless of a possible future geometry type, this seems like a
case that could be handled more gracefully.
--
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]