You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/12/16 19:42:00 UTC

[jira] [Resolved] (ARROW-14853) [C++][Python] Cryptic error message when required compute options missing

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

Antoine Pitrou resolved ARROW-14853.
------------------------------------
    Resolution: Fixed

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

> [C++][Python] Cryptic error message when required compute options missing
> -------------------------------------------------------------------------
>
>                 Key: ARROW-14853
>                 URL: https://issues.apache.org/jira/browse/ARROW-14853
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Python
>            Reporter: Antoine Pitrou
>            Assignee: Antoine Pitrou
>            Priority: Major
>              Labels: Kernels, pull-request-available
>             Fix For: 7.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> This will confuse users:
> {code:python}
> >>> pc.partition_nth_indices([1,2,3])
> Traceback (most recent call last):
>   File "<ipython-input-5-eba834442d81>", line 1, in <module>
>     pc.partition_nth_indices([1,2,3])
>   File "/home/antoine/arrow/dev/python/pyarrow/compute.py", line 202, in wrapper
>     return func.call(args, options, memory_pool)
>   File "pyarrow/_compute.pyx", line 327, in pyarrow._compute.Function.call
>     result = GetResultValue(
>   File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
>     return check_status(status)
>   File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
>     raise ArrowInvalid(message)
> ArrowInvalid: Attempted to initialize KernelState from null FunctionOptions
> /home/antoine/arrow/dev/cpp/src/arrow/compute/function.cc:222  kernel->init(&kernel_ctx, {kernel, inputs, options})
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)