-
Notifications
You must be signed in to change notification settings - Fork 803
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
MapArrayReader Does Not Understand Nesting #1699
Comments
@tustvold maybe I get your idea wrong but I can't reproduce it in any ways, trying with such incoming data
|
Hi @frolovdev. I'm afraid I'm away from a computer for the next few days, but taking a cursory look, lines like
Are not able to correctly handle the case of a MapArrayReader inside another list, as it starts a new run when the repetition level is 0, as opposed to the repetition level of the map array (which will only be 0 if it is at the root). If you compare the logic with the logic in ListArrayReader, that may help, as a MapArray is just a special case of a ListArray and the levels handling logic should be identical. One way to fix this, might be to remove MapArrayReader and just add a teeny bit of additional logic to ListArrayReader to handle MapArray. We do something similar for the level computation on the writer side. |
Describe the bug
The logic within MapArrayReader will not work if the MapArray is itself nested, in particular:
To Reproduce
A nullable StructArray with a child MapArray will likely result in an error, similarly a ListArray with a child MapArray will likely error
Expected behavior
This should be properly supported
The text was updated successfully, but these errors were encountered: