Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0
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
- is related to
-
ARROW-11705 [R] Support scalar value recycling in RecordBatch/Table$create()
- Resolved
- links to