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

[R] Validate when creating Table with schema

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0
    • Fix Version/s: 4.0.0
    • Component/s: R
    • Labels:
      None

      Description

      This segfaults:

      tab <- Table$create(data.frame(), schema = schema(a = int32())
      as.data.frame(tab)
      

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                icook Ian Cook
                Reporter:
                npr Neal Richardson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: