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
[C#] ArrayBuilder API to support writing nulls #22959
Comments
Anthony Abate / @abbotware: |
Anthony Abate / @abbotware:
note that this does not change the existing API, but can be used in-lieu of when creating record batches. |
Anthony Abate / @abbotware: If you see how I implement nullable, I am filling in dummy values in the Value Buffer for nulls, but correctly setting the value bitmap... this results in a reader of the arrow file correctly interpreting the NULL. It still might be possible a builder method called AppendNullable<T?>() into the existing builder code... but I was able to get the code in the PR to work fairly quickly once I understood the flatbuffer spec |
Zachary Gramana: I have submitted GitHub Pull Request #7032 which includes:
|
Eric Erhardt / @eerhardt: |
There is currently no API in the PrimitiveArrayBuilder class to support writing nulls. See this TODO - https://github.com/apache/arrow/blob/1515fe10c039fb6685df2e282e2e888b773caa86/csharp/src/Apache.Arrow/Arrays/PrimitiveArrayBuilder.cs#L101.
Also see #5381.
We should add some APIs to support writing nulls.
Reporter: Eric Erhardt / @eerhardt
Assignee: Anthony Abate / @abbotware
Related issues:
PRs and other links:
Note: This issue was originally created as ARROW-6603. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: