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

[jira] [Commented] (ARROW-11468) [R] Allow user to pass schema to read_json_arrow()

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

Jonathan Keane commented on ARROW-11468:
----------------------------------------

Am I following this that it looks like we need to grow JsonParseOptions in the r package (i.e. https://github.com/apache/arrow/blob/master/r/src/json.cpp#L34-L40), since it looks like schema is supported in the cpp library (https://github.com/apache/arrow/blob/master/cpp/src/arrow/json/options.h#L46)? It looks like JsonParseOptions is the name in R for PraseOptions that will be passed to the json parsing generally, yeah?

> [R] Allow user to pass schema to read_json_arrow()
> --------------------------------------------------
>
>                 Key: ARROW-11468
>                 URL: https://issues.apache.org/jira/browse/ARROW-11468
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>    Affects Versions: 3.0.0
>            Reporter: Ian Cook
>            Assignee: Ian Cook
>            Priority: Major
>
> The {{read_json_arrow()}} function lacks a {{schema}} argument, and it is not possible to specify a schema through {{JsonParseOptions}}. PyArrow allows the user to pass a schema to {{read_json()}} through {{ParseOptions}} to bypass automatic type inference. Implement this in the R package.



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