Uwe Korn created ARROW-8285: ------------------------------- Summary: [Python][Dataset] ScalarExpression doesn't accept numpy scalars Key: ARROW-8285 URL: https://issues.apache.org/jira/browse/ARROW-8285 Project: Apache Arrow Issue Type: Improvement Components: Python Reporter: Uwe Korn
{{pyarrow.dataset.ScalarExpression}} doesn't accept numpy scalars. This would be useful as values coming out of {{pandas}} or {{numpy}} are such. Example: {code:java} import pyarrow.dataset as ds import numpy as np ds.ScalarExpression(np.int64(2)){code} {code:java} --------------------------------------------------------------------------- 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 {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)