Skip to content

GetByteRangesArray doesn't support run-end encoded arrays #36502

Closed

Description

@sjperkins

Describe the bug, including details regarding any error messages, version, and platform.

Environment:

OS: Ubuntu 20.04
Python: 3.10
Arrow: 12.0.0

Reproducer:

import numpy as np
import pyarrow as pa
import pyarrow.compute as pac

if __name__ == "__main__":
   pa.Table.from_pydict({"A": pac.run_end_encode(np.zeros(1000))}).nbytes

Example error message:

In [10]: pa.Table.from_pydict({"A": pac.run_end_encode(np.zeros(1000))}).nbytes
---------------------------------------------------------------------------
ArrowTypeError                            Traceback (most recent call last)
Cell In[10], line 1
----> 1 pa.Table.from_pydict({"A": pac.run_end_encode(np.zeros(1000))}).nbytes

File ~/venv/venv3.10/lib/python3.10/site-packages/pyarrow/table.pxi:4474, in pyarrow.lib.Table.nbytes.__get__()

File ~/venv/venv3.10/lib/python3.10/site-packages/pyarrow/error.pxi:144, in pyarrow.lib.pyarrow_internal_check_status()

File ~/venv/venv3.10/lib/python3.10/site-packages/pyarrow/error.pxi:123, in pyarrow.lib.check_status()

ArrowTypeError: Extracting byte ranges not supported for type run_end_encoded<run_ends: int32, values: double>

Component(s)

C++

Activity

  1. mapleFU commented on Jul 6, 2023

    @mapleFU
    Member
  2. felipecrv commented on Jul 6, 2023

    @felipecrv
    Contributor

    @mapleFU @sjperkins I will fix it now.

  3. self-assigned this
    on Jul 6, 2023
  4. added a commit that references this issue on Jul 11, 2023
  5. added this to the 13.0.0 milestone on Jul 11, 2023
  6. sjperkins commented on Jul 11, 2023

    @sjperkins
    ContributorAuthor

    Thank you for the fix @felipecrv.

  7. modified the milestones: 13.0.0, 14.0.0 on Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions