Closed aymanosman closed 1 month ago
I can confirm this is a bug on our side (of the Rust code). When encoding structs, we recursively call the term_from_value
function that does not implement the encoding of AnyValue::Binary(bytes)
. This encoding is only implemented by the resource_term_from_value
function that requires a ResourceArc
as parameter.
I will investigate how to fix this issue. Thanks for the report!
@philss https://github.com/elixir-explorer/explorer/pull/995 do you think this is ok to fix it ?
@ceyhunkerti this is partially fixing it. It's not building a Binary term, but a List term. Maybe we need a wider change there. But I can confirm that the parquet will load with your change.
I'm getting this error with a dataset that contains
Binary
nested in astruct
Steps to reproduce.
FYI, the original dataset that cause the issue is https://huggingface.co/datasets/microsoft/cats_vs_dogs/resolve/main/data/train-00000-of-00002.parquet.