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

Neal Richardson updated ARROW-15102:
------------------------------------
    Fix Version/s:     (was: 9.0.0)

> [R] Allow creation of struct type with fields
> ---------------------------------------------
>
>                 Key: ARROW-15102
>                 URL: https://issues.apache.org/jira/browse/ARROW-15102
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>    Affects Versions: 6.0.1
>            Reporter: Will Jones
>            Priority: Major
>              Labels: beginner-friendly, good-first-issue
>
> StructTypes can be created with types:
> {code:R}
> struct(x = int32(), y = utf8())
> {code}
> But they cannot be created with fields yet. This means you cannot construct a 
> StructType with a non-nullable field (since fields are nullable by default.) 
> We should support constructing a StructType with fields, like we do for a 
> Schema:
> {code:R}
> # Schema from fields
> schema(field("x", int32()), field(y, utf8(), nullable=FALSE))
> # Expected StructType from fields
> struct(field("x", int32()), field(y, utf8(), nullable=FALSE))
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to