Skip to content

[R] Require Table columns to be same length #27976

Description

@asfimport

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: Allarraysmusthavethesamelength

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()
# Atibble: 5x2ab
<int> <dbl>
114.20e+ 1226.94e-310336.94e-310446.94e-310556.94e-310

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

Reporter: Ian Cook / @ianmcook
Assignee: Ian Cook / @ianmcook

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-12155. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions