[ 
https://issues.apache.org/jira/browse/ARROW-15629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rob Saccoccio updated ARROW-15629:
----------------------------------
    Description: 
The existing garrow_string_array_builder_append_string() function takes a 
null-terminated string. I have strings that are not null-terminated and a 
length. I propose adding the function:
{code:c}
gboolean
garrow_string_array_builder_append_string_n(GArrowStringArrayBuilder *builder,
                                            const gchar *value,
                                            gint32 length,
                                            GError **error) 
{code}
I'll post a PR shortly.

  was:
The existing garrow_string_array_builder_append_string() function takes a 
null-terminated string. I have non-null terminated strings and a length. I 
propose the new function:
{code:c}
gboolean
garrow_string_array_builder_append_string_n(GArrowStringArrayBuilder *builder,
                                            const gchar *value,
                                            gint32 length,
                                            GError **error) 



{code}


> [GLib] Add garrow_string_array_builder_append_string_n()
> --------------------------------------------------------
>
>                 Key: ARROW-15629
>                 URL: https://issues.apache.org/jira/browse/ARROW-15629
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: GLib
>    Affects Versions: 6.0.1, 7.0.0
>            Reporter: Rob Saccoccio
>            Priority: Major
>
> The existing garrow_string_array_builder_append_string() function takes a 
> null-terminated string. I have strings that are not null-terminated and a 
> length. I propose adding the function:
> {code:c}
> gboolean
> garrow_string_array_builder_append_string_n(GArrowStringArrayBuilder *builder,
>                                             const gchar *value,
>                                             gint32 length,
>                                             GError **error) 
> {code}
> I'll post a PR shortly.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to