You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Will Jones (Jira)" <ji...@apache.org> on 2021/01/22 01:06:00 UTC
[jira] [Created] (ARROW-11341) [Python] [Gandiva] Check parameters
are not None
Will Jones created ARROW-11341:
----------------------------------
Summary: [Python] [Gandiva] Check parameters are not None
Key: ARROW-11341
URL: https://issues.apache.org/jira/browse/ARROW-11341
Project: Apache Arrow
Issue Type: Bug
Components: C++ - Gandiva, Python
Reporter: Will Jones
Assignee: Will Jones
Most of the functions in Gandiva's Python Expression builder interface current accept None in their arguments, but will segfault once they are used.
Example:
{code:python}
import pyarrow
import pyarrow.gandiva as gandiva
builder = gandiva.TreeExprBuilder()
field = pyarrow.field('whatever', type=pyarrow.date64())
date_col = builder.make_field(field)
func = builder.make_function('less_than_or_equal_to', [date_col, None], pyarrow.bool_())
condition = builder.make_condition(func)
# Will segfault on this line:
gandiva.make_filter(pyarrow.schema([field]), condition)
{code}
I think this is just a matter of adding {{not None}} to the appropriate function arguments.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)