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

[Python][Dataset] ScalarExpression doesn't accept numpy scalars #24479

Closed
asfimport opened this issue Mar 31, 2020 · 1 comment
Closed

[Python][Dataset] ScalarExpression doesn't accept numpy scalars #24479

asfimport opened this issue Mar 31, 2020 · 1 comment

Comments

@asfimport
Copy link

pyarrow.dataset.ScalarExpression doesn't accept numpy scalars. This would be useful as values coming out of pandas or numpy are such.

Example:

import pyarrow.dataset as ds
import numpy as np

ds.ScalarExpression(np.int64(2))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-18-805083da7827> in <module>
----> 1 ds.ScalarExpression(np.int64(2))

~/miniconda3/envs/kartothek/lib/python3.7/site-packages/pyarrow/_dataset.pyx in pyarrow._dataset.ScalarExpression.__init__()

TypeError: Not yet supported scalar value: 2 

Reporter: Uwe Korn / @xhochy
Assignee: Alenka Frim / @AlenkaF

PRs and other links:

Note: This issue was originally created as ARROW-8285. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Joris Van den Bossche / @jorisvandenbossche:
Issue resolved by pull request 11545
#11545

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants