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

[R] Require Table columns to be same length

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 4.0.0
    • R

    Description

      An error is thrown if the user attempts to create a RecordBatch with different length arrays:

      > arrow::record_batch(a=1:5, b = 42)
      Error: Invalid: All arrays must have the same length 

      But no error is thrown if the user attempts to create a Table with different length columns. Instead we get garbage in the table:

      Table$create(a=1:5, b = 42) %>% collect()
      # A tibble: 5 x 2
            a         b
        <int>     <dbl>
      1     1 4.20e+  1
      2     2 6.94e-310
      3     3 6.94e-310
      4     4 6.94e-310
      5     5 6.94e-310  

      Change the behavior for Table creation to match the current behavior of RecordBatch creation.

      Attachments

        Issue Links

          Activity

            People

              icook Ian Cook
              icook Ian Cook
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 50m
                  50m