Skip to content

[Python] RecordBatch.from_arrays does not validate array lengths are all equal #19198

@asfimport

Description

@asfimport

Example reproduction as reported on #2098

import pyarrow as pa
data=[pa.array([1]),pa.array(["tokyo", "like", "happy"]),pa.array(["derek"])]
batch = pa.RecordBatch.from_arrays(data, ['id', 'tags', 'name'])

Reporter: Wes McKinney / @wesm
Assignee: Wes McKinney / @wesm

PRs and other links:

Note: This issue was originally created as ARROW-2820. 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