Skip to content

Converting numpy array of bigint zeros to Arkouda yields empty array #4884

Closed

Description

@1RyanK

Describe the bug
When creating an Arkouda array from a numpy array of bigints which all take the value zero, it should create an array of the same size, not an empty array.

To Reproduce

In [1]: import numpy as np

In [2]: a = np.array([2**200] * 100)

In [3]: b = a * 0

In [4]: ak.array(b)
Out[4]: array([])

Expected behavior

In [1]: import numpy as np

In [2]: a = np.array([2**200] * 100)

In [3]: b = a * 0

In [4]: ak.array(b)
Out[4]: array([0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0])

Activity

  1. added
    bug
    on Sep 10, 2025
  2. added a commit that references this issue on Sep 10, 2025
    131f718
  3. self-assigned this
    on Sep 10, 2025
  4. added 2 commits that reference this issue on Sep 15, 2025
    8464c5a
    8817ed8
  5. added a commit that references this issue on Sep 24, 2025
    d2bb6a1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions