Skip to content

[Python/Question] Maximum length of an Array created from ndarray #18674

@asfimport

Description

@asfimport

So the format describes that an array max length is 2^31 - 1, however the following python snippet creates a 2**32 length arrow array:

a = np.ones((2**32,), dtype='int8')
A = pa.Array.from_pandas(a)
type(A)
pyarrow.lib.Int8Array

Based the layout specification I'd expect a ChunkedArray of three Int8Array's with lengths:
[2^31 - 1, 2^31 - 1, 2] or should raise an exception?

If it's the expectation is there any documentation for it?

Reporter: Krisztian Szucs / @kszucs

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions