when using type multiple types for left and right arrays, if_else kernel fails. IMO check casting and dispatching logic for the if_else kernel.
>>> pc.if_else([True], [1], [3.5])
Traceback (mostrecentcalllast):
File"<stdin>", line1, in <module>
File"<string>", line3, inif_elseFile"pyarrow/_compute.pyx", line335, inpyarrow._compute.Function.callresult = GetResultValue(self.base_func.Execute(c_args,
File"pyarrow/error.pxi", line141, inpyarrow.lib.pyarrow_internal_check_statusreturncheck_status(status)
File"pyarrow/error.pxi", line118, inpyarrow.lib.check_statusraiseArrowNotImplementedError(message)
pyarrow.lib.ArrowNotImplementedError: Functionif_elsehasnokernelmatchinginputtypes (array[bool], array[int64], array[double])
Reporter: Niranda Perera / @nirandaperera
Assignee: Niranda Perera / @nirandaperera
Related issues:
PRs and other links:
Note: This issue was originally created as ARROW-12975. Please see the migration documentation for further details.
when using type multiple types for
leftandrightarrays,if_elsekernel fails. IMO check casting and dispatching logic for the if_else kernel.Reporter: Niranda Perera / @nirandaperera
Assignee: Niranda Perera / @nirandaperera
Related issues:
PRs and other links:
Note: This issue was originally created as ARROW-12975. Please see the migration documentation for further details.