Skip to content
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

Get dictionaries of children only when field.children not nothing #382

Merged
merged 3 commits into from
May 25, 2023

Conversation

okartal
Copy link
Contributor

@okartal okartal commented Jan 20, 2023

Closes #375

This PR fixes a problem in reading an Arrow IPC file generated by C# Apache.Arrow 10.0.1 where the last recursive iteration to get the dictionaries returns nothing instead of an empty iterable.

@okartal
Copy link
Contributor Author

okartal commented Jan 24, 2023

@quinnj I want to attach a test file that produces the following error
image
but Github says it is not allowed

@okartal
Copy link
Contributor Author

okartal commented Feb 3, 2023

Is there another way I can share the arrow test file?

@quinnj
Copy link
Member

quinnj commented May 19, 2023

@okartal, so sorry for the very slow response here. The best thing would be to include the example file in your commits in this PR. Then we can just add it as a test that this is working. If you just want to commit the file, I can help actually writing a test that reads the file.

Copy link
Member

@quinnj quinnj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, though it makes me slightly worried if there are other cases where we may want to do extra validation of not nothing from flatbuffer fields.

@quinnj quinnj merged commit 94f7e37 into apache:main May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make recursive iteration to get dictionaries more defensive for interop
2 participants