Will Jones created ARROW-15102:
----------------------------------
Summary: [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
Fix For: 8.0.0
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.1#820001)