-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-11341: [Python] [Gandiva] Add NULL/None checks to Gandiva build…
…er functions (#9289) If these functions were passed None as an argument, they caused segfaults. As an example: ```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) ``` Lead-authored-by: Will Jones <willjones127@gmail.com> Co-authored-by: Will Jones <will.jones@mscience.com> Signed-off-by: David Li <li.davidm96@gmail.com>
- Loading branch information
Showing
2 changed files
with
67 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters