genesis-jamin opened a new issue, #38675:
URL: https://github.com/apache/arrow/issues/38675
### Describe the usage question you have. Please include as many useful
details as possible.
Hi, I'm running into an issue while using Ray to write a nested dictionary
of tensors to parquet. I'm posting here because from the stacktrace, it seems
like the error is coming from pyarrow.
Minimal reproducible example:
```python
import ray
import torch
ds_test = ray.data.from_items([{"nested": {"tensor_a": torch.zeros(5),
"tensor_b": torch.zeros(5)}}])
ds_test.write_parquet("local://test_parquet")
```
The error:
```
pyarrow.lib.ArrowInvalid: ('Could not convert tensor([0., 0., 0., 0., 0.])
with type Tensor: did not recognize Python value type when inferring an Arrow
data type', 'Conversion failed for column nested with type object')
```
### Component(s)
Parquet
--
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]