atwam commented on issue #5354:
URL: https://github.com/apache/arrow-rs/issues/5354#issuecomment-1919154761
Interestingly, changing the tests (which I've done locally) raise another
error:
in `test_sql.py:test_tensor_array`, schemas are not equal even after my
fixes:
```
> print("Orig schema:", batch.schema)
Orig schema: tensor: extension<arrow.fixed_shape_tensor[value_type=float,
shape=[2,3]]>
-- schema metadata --
key1: 'value1'
> print("New schema:", b.schema)
New schema: tensor: extension<arrow.fixed_shape_tensor[value_type=float,
shape=[2,3]]>
-- field metadata --
ARROW:extension:name: 'arrow.fixed_shape_tensor'
ARROW:extension:metadata: '{"shape":[2,3]}'
-- schema metadata --
key1: 'value1'
```
It looks like the round-trip adds two fields metadata on the `tensor` field,
that were not there in the original `pa.record_batch`
--
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]