Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrowNotImplementedError: Function 'is_in' has no kernel matching input types (duration[s]) #36047

Closed
randolf-scholz opened this issue Jun 13, 2023 · 0 comments · Fixed by #36058

Comments

@randolf-scholz
Copy link

randolf-scholz commented Jun 13, 2023

Describe the enhancement requested

import numpy as np
import pyarrow as pa

dt = np.linspace(0, 100) * np.timedelta64(1, "s")
arr = pa.array(dt)  # duration[s]
pa.compute.is_in(arr, arr)  # ✘ ArrowNotImplementedError

Was kind of surprised by this, since presumably an is_in function should be pretty generic.

Component(s)

Python (version 12.0.0)

js8544 added a commit to js8544/arrow that referenced this issue Jun 14, 2023
pitrou pushed a commit that referenced this issue Jun 26, 2023
…d IsIn (#36058)

Add support for duration types to IndexIn and IsIn
* Closes: #36047

Authored-by: Jin Shang <shangjin1997@gmail.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
@pitrou pitrou added this to the 13.0.0 milestone Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants