You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ian Cook (Jira)" <ji...@apache.org> on 2021/02/03 01:54:00 UTC

[jira] [Commented] (ARROW-11478) [R] Consider ways to make arrow.skip_nul option more user-friendly

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

Ian Cook commented on ARROW-11478:
----------------------------------

I think I'm in favor of option 3, assuming it's feasible (which I think it should be).

> [R] Consider ways to make arrow.skip_nul option more user-friendly
> ------------------------------------------------------------------
>
>                 Key: ARROW-11478
>                 URL: https://issues.apache.org/jira/browse/ARROW-11478
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>    Affects Versions: 3.0.0
>            Reporter: Ian Cook
>            Assignee: Ian Cook
>            Priority: Minor
>             Fix For: 4.0.0
>
>
> In Arrow 3.0.0, the {{arrow.skip_nul}} option effectively defaults to {{FALSE}} for consistency with {{base::readLines}} and {{base::scan}}.
> If the user keeps this default option value, then conversion of string data containing embedded nuls causes an error with a message like:
> {code:java}
> embedded nul in string: '\0' {code}
> If the user sets the option to {{TRUE}}, then no error occurs, but this warning is issued:
> {code:java}
> Stripping '\0' (nul) from character vector {code}
> Consider whether we should:
>  # Keep this all as it is
>  # Change the default option value to {{TRUE}}
>  # Keep the default option value as it is, but catch the error and re-throw it with a more actionable message that tells the user how to set the option



--
This message was sent by Atlassian Jira
(v8.3.4#803005)