You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2021/10/27 09:39:00 UTC

[jira] [Resolved] (ARROW-8285) [Python][Dataset] ScalarExpression doesn't accept numpy scalars

     [ https://issues.apache.org/jira/browse/ARROW-8285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joris Van den Bossche resolved ARROW-8285.
------------------------------------------
    Fix Version/s: 7.0.0
       Resolution: Fixed

Issue resolved by pull request 11545
[https://github.com/apache/arrow/pull/11545]

> [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
>            Assignee: Alenka Frim
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 7.0.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> {{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)