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

[R] Validate when creating Table with schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 4.0.0
    • R

    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

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 20m
                  3h 20m