Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-15102

[R] Allow creation of struct type with fields

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.0.1
    • None
    • R

    Description

      StructTypes can be created with types:

      struct(x = int32(), y = utf8())
      

      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:

      # 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))
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            wjones127 Will Jones
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: