Skip to content

Awkward array should work on big-endian machines #3630

@ikrommyd

Description

@ikrommyd

Version of Awkward Array

HEAD

Description and code to reproduce

Starting an issue that comes from this PR #3629 to continue the discussion in a good manner.

Awkward array is entirely broken on big endian systems and there is no ci that tests this.
As stated in the PR, just creating an array fails

>>> import awkward
>>> array = awkward.Array([1, 2, 3])

gives

TypeError: size of array (3) is less than size of form (216172782113783808)

Also other things like ak.from_buffers, ak.to_buffers and round-trips between them error or give wrong results on big endian machines.

Related to #3356 because that's actually the problem regarding array construction. Solving #3356, solves array creation but doesn't solve the rest of the problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions