Skip to content

ak.concatenate with axis=1 fails for more than 127 regular-length arrays #3310

@jpivarski

Description

@jpivarski

Version of Awkward Array

HEAD

Description and code to reproduce

>>> ak.concatenate([ak.Array([i])[:, np.newaxis] for i in range(127)], axis=1)
<Array [[0, 1, 2, 3, 4, ..., 122, 123, 124, 125, 126]] type='1 * 127 * int64'>

but

>>> ak.concatenate([ak.Array([i])[:, np.newaxis] for i in range(128)], axis=1)
Traceback (most recent call last):
...
KeyError: ('awkward_UnionArray_regular_index_getsize', <class 'numpy.int64'>, <class 'numpy.int64'>)

This error occurred while calling

    ak.concatenate(
        [<Array [[0]] type='1 * 1 * int64'>, <Array [[1]] type='1 * 1 * int64...
        axis = 1
    )

Metadata

Metadata

Assignees

Labels

bugThe problem described is something that must be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions