-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Deserialize nullable LIST, ArgumentOutOfRange exception #502
Comments
Just looking at this now. |
Seems like the issue is in second row group, in column "tracked_objects/list/element/track_id". More to follow. |
Got to the bottom of it and the issue is schema compatibility. The error is really confusing and not informative, which I've done some work on for the next release. But, the actual problem is that schema for list in the class definion is optional (you can have nullable list) but in the file itself the list is required, so deserializer gets confused. I'm looking at possible solutions to this. |
Hi. In 5.0.1-pre.1 you can fix the schema by marking: [ParquetRequired, ParquetListElementRequired]
public List<TrackedObjectsTestListElement> tracked_objects { get; set; } |
Library Version
4.23.5
OS
MacOS
OS Architecture
64 bit
How to reproduce?
Hello,
I am working on POC and try to process ROS generated data which is converted then to parquet in GCS, this .NET package is really cool, amazing performance. While it works for some topics (without nested repeated structs), it is failing on large complec data structures with multi level lists/structs.
I found multiple error types on deserializing to C# classes, one is the same that was closed last year - destination is too short. Another one is ArgumentOutOfRange.
I prepared a small test on which can be reproduced the second error type, another one is more difficult to reproduce, will try to prepare another test dataset and submit another ticket.
Here is the example file with truncated schema to just a few fields but the ArgumentOutOfRange can be reproduced:
000000000000.parquet.zip
Error:
Failing test
The text was updated successfully, but these errors were encountered: