You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Adam Szmigin (Jira)" <ji...@apache.org> on 2020/05/13 14:35:00 UTC
[jira] [Created] (ARROW-8788) [C#] Array builders to use bit-packed
buffer builder rather than boolean array builder for validity map
Adam Szmigin created ARROW-8788:
-----------------------------------
Summary: [C#] Array builders to use bit-packed buffer builder rather than boolean array builder for validity map
Key: ARROW-8788
URL: https://issues.apache.org/jira/browse/ARROW-8788
Project: Apache Arrow
Issue Type: Improvement
Components: C#
Affects Versions: 0.17.0
Reporter: Adam Szmigin
The C# array builders were recently enhanced to have support for adding nullable values easily, under [PR #7032|https://github.com/apache/arrow/pull/7032].
However, the builders internally referenced {{BooleanArray.Builder}}, which itself then had logic "baked-in" for efficient bit-packing of boolean values into a byte buffer.
It would be cleaner for there to be a general-purpose bit-packed buffer builder, and for all array builders to use that for their validity map. The boolean array builder would use it twice: once for values, once for validity.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)