You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/01/22 04:00:00 UTC

[jira] [Updated] (ARROW-11341) [Python] [Gandiva] Check parameters are not None

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

ASF GitHub Bot updated ARROW-11341:
-----------------------------------
    Labels: pull-request-available  (was: )

> [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
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)