Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
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:
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)
I think this is just a matter of adding not None to the appropriate function arguments.
Attachments
Issue Links
- links to