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

[jira] [Resolved] (ARROW-10953) [R] Validate when creating Table with schema

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

Neal Richardson resolved ARROW-10953.
-------------------------------------
    Resolution: Fixed

Issue resolved by pull request 9665
[https://github.com/apache/arrow/pull/9665]

> [R] Validate when creating Table with schema
> --------------------------------------------
>
>                 Key: ARROW-10953
>                 URL: https://issues.apache.org/jira/browse/ARROW-10953
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>    Affects Versions: 2.0.0
>            Reporter: Neal Richardson
>            Assignee: Ian Cook
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> This segfaults:
> {code:java}
> tab <- Table$create(data.frame(), schema = schema(a = int32()))
> as.data.frame(tab)
> {code}
> as does {{tab$a}}, i.e. just trying to extract the ChunkedArray.
> {{Table$create(data.frame(b=1), schema = schema(a = int32()))}} creates a Table with column named a, overwriting the "b" column name.
> {{tab <- Table$create(data.frame(b=2, c=3), schema = schema(a = int32()))}}, i.e. providing fewer fields in the schema than there are columns in the data, segfaults.
> There should be some validation that the schema matches the data provided.



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