[
https://issues.apache.org/jira/browse/ARROW-12155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Neal Richardson resolved ARROW-12155.
-------------------------------------
Resolution: Fixed
Issue resolved by pull request 9851
[https://github.com/apache/arrow/pull/9851]
> [R] Require Table columns to be same length
> -------------------------------------------
>
> Key: ARROW-12155
> URL: https://issues.apache.org/jira/browse/ARROW-12155
> Project: Apache Arrow
> Issue Type: Bug
> Components: R
> Affects Versions: 3.0.0
> Reporter: Ian Cook
> Assignee: Ian Cook
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> An error is thrown if the user attempts to create a RecordBatch with
> different length arrays:
> {code:java}
> > arrow::record_batch(a=1:5, b = 42)
> Error: Invalid: All arrays must have the same length {code}
> But no error is thrown if the user attempts to create a Table with different
> length columns. Instead we get garbage in the table:
> {code:java}
> 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 {code}
> Change the behavior for Table creation to match the current behavior of
> RecordBatch creation.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)