apache / apache/arrow

[C++][Python] Function 'binary_join_element_wise' has no kernel matching input types (large_string, string)

Open
#45,717 5 comments 0 reactions 0 assignees View on GitHub
Component: C++ Type: enhancement
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

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

```python
import pyarrow as pa
import pyarrow.compute as pc
a1 = pa.array(['x', 'y'], type=pa.string())
a2 = pa.array(['x', 'y'], type=pa.large_string())
```
Then:
```python
In [19]: pc.binary_join_element_wise(a1, '')
Out[19]:

[
"x",
"y"
]
```
All good

Using `a2`:
```python
In [20]: pc.binary_join_element_wise(a2, '')
---------------------------------------------------------------------------
ArrowNotImplementedError Traceback (most recent call last)
Cell In[20], line 1
----> 1 pc.binary_join_element_wise(a2, '')

File ~/polars-api-compat-dev/.venv/lib/python3.12/site-packages/pyarrow/compute.py:264, in _make_generic_wrapper..wrapper(memory_pool, options, *args, **kwargs)
262 if args and isinstance(args[0], Expression):
263 return Expression._call(func_name, list(args), options)
--> 264 return func.call(args, options, memory_pool)

File ~/polars-api-compat-dev/.venv/lib/python3.12/site-packages/pyarrow/_compute.pyx:393, in pyarrow._compute.Function.call()

File ~/polars-api-compat-dev/.venv/lib/python3.12/site-packages/pyarrow/error.pxi:155, in pyarrow.lib.pyarrow_internal_check_status()

File ~/polars-api-compat-dev/.venv/lib/python3.12/site-packages/pyarrow/error.pxi:92, in pyarrow.lib.check_status()

ArrowNotImplementedError: Function 'binary_join_element_wise' has no kernel matching input types (large_string, string)
```

Expected;
```
In [20]: pc.binary_join_element_wise(a2, '')
Out [20]:

[
"x",
"y"
]
```

### Component(s)

Python

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.