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/01/07 19:06:00 UTC

[jira] [Assigned] (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 reassigned ARROW-10953:
---------------------------------------

    Fix Version/s:     (was: 3.0.0)
                   4.0.0
         Assignee: Ian Cook

> [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
>             Fix For: 4.0.0
>
>
> 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)