Skip to content

ARROW-12155: [R] Require Table columns to be same length - #9851

Closed
ianmcook wants to merge 2 commits into
apache:masterfrom
ianmcook:ARROW-12155
Closed

ARROW-12155: [R] Require Table columns to be same length#9851
ianmcook wants to merge 2 commits into
apache:masterfrom
ianmcook:ARROW-12155

Conversation

@ianmcook

Copy link
Copy Markdown
Member

This throws an error if the user attempts to create a Table with columns of different lengths. We already had this for RecordBatches but not for Tables.

@github-actions

Copy link
Copy Markdown

Comment threadr/src/table.cpp
StopIfNotOk(
arrow::r::CollectTableColumns(lst, schema, num_fields, infer_schema, columns));

StopIfNotOk(arrow::r::check_consistent_column_length(columns));

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this will conflict with #9615 but I believe the resolution is trivial: just insert this line as the second to last line in the new definition of Table__from_dots

@nealrichardsonnealrichardson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rebase and see if the tests complete now?

@nealrichardson

Copy link
Copy Markdown
Member

Nevermind I see that rebase won't help. I'll merge.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ianmcook@nealrichardson