Antoine Pitrou created ARROW-14853:
--------------------------------------
Summary: [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
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)