Skip to content

[C++][Python] Implement pc.equal for List arguments #45167

@WillAyd

Description

@WillAyd

Describe the enhancement requested

The follow arguments to pc.equal raise

>>> import pyarrow as pa
>>> import pyarrow.compute as pc
>>> arr = pa.array([[1, 2, 3], None])
>>> pc.equal(arr, arr)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/willayd/miniforge3/envs/pandas-dev/lib/python3.10/site-packages/pyarrow/compute.py", line 247, in wrapper
    return func.call(args, None, memory_pool)
  File "pyarrow/_compute.pyx", line 393, in pyarrow._compute.Function.call
  File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
  File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Function 'equal' has no kernel matching input types (list<item: int64>, list<item: int64>)
>>> pc.equal(arr, pa.scalar([1, 2, 3]))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/willayd/miniforge3/envs/pandas-dev/lib/python3.10/site-packages/pyarrow/compute.py", line 247, in wrapper
    return func.call(args, None, memory_pool)
  File "pyarrow/_compute.pyx", line 393, in pyarrow._compute.Function.call
  File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
  File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Function 'equal' has no kernel matching input types (list<item: int64>, list<item: int64>)

Although I think these should be supported

Component(s)

Python

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions