This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
Writing Arrow IPC format panic within encode_dictionary()
method due to access out of bound fields vector
#975
Labels
no-changelog
Issues whose changes are covered by a PR and thus should not be shown in the changelog
It panic at this line trying to access index 0 while
&field.fields
is a 0 length vector.I haven't dived too deep to figure out what should be fixed, but turns out it panics when I have a
List<Utf8>
as Array item (btw: schema definition isField::new("labels", DataType::List(Box::new(Field::new("labels", DataType::Utf8, true)))
)I suspect the above
match array.data_type().to_physical_type()
will always match onList
, and when it recursively invokesencode_dictionary()
method with the nestedIpcField
, it will panic eventually because the innermostIpcField
holds an emptyfields
vector.Seems like a bug? Not sure if it is similar to this one #830
The text was updated successfully, but these errors were encountered: