[ 
https://issues.apache.org/jira/browse/ARROW-2487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16447439#comment-16447439
 ] 

Kouhei Sutou commented on ARROW-2487:
-------------------------------------

There is already one use case.

C GLib bindings use {{gboolean}} for boolean value. {{bool}} in C99 is 1byte. 
So we can use {{bool}} value for the current {{valid_bytes}}. But {{gboolean}} 
isn't 1byte. It uses {{int}} (*1) as the real type.

(*1) https://developer.gnome.org/glib/stable/glib-Basic-Types.html#gboolean

If {{AppendValues}} accepts {{const int*}} for {{valid_bytes}}, we can remove 
type conversion ({{gboolean}} -> {{uint8_t}}) from C GLib bindings.

> [C++] Provide a variant of AppendValues that takes bytemaps for the 
> nullability
> -------------------------------------------------------------------------------
>
>                 Key: ARROW-2487
>                 URL: https://issues.apache.org/jira/browse/ARROW-2487
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Uwe L. Korn
>            Priority: Major
>              Labels: beginner
>             Fix For: 0.11.0
>
>
> Instead of only accepting bitmaps, we should provide users with a variant of 
> {{AppendValues}} that can work on bytemaps.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to