apache / apache/arrow

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

オープン
#45,167 コメント 2 件 リアクション 0 件 担当者 1 名 @WillAyd が担当を希望しています GitHub で見る
Component: C++ Component: Python Status: needs champion Type: enhancement
主要言語
C++
スター
17.1k
フォーク
4.3k
平均マージ
3日 18時間
マージ済み PR(30日)
91

説明

### Describe the enhancement requested

The follow arguments to pc.equal raise

```python
>>> 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 "", line 1, in
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, list)
>>> pc.equal(arr, pa.scalar([1, 2, 3]))
Traceback (most recent call last):
File "", line 1, in
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, list)
```

Although I think these should be supported

### Component(s)

Python

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。