[BUG] Numba 0.57 will break row UDFs #13002
Labels
0 - Blocked
Cannot progress due to external reasons
bug
Something isn't working
Python
Affects Python cuDF API.
Describe the bug
Identified by @brandon-b-miller:
numba/numba#8120 added a
bitwidth
attribute to theRecord
type, which is computed by converting the fields to their NumPy dtype and getting the item size. However, cuDF usesRecord
instances that have non-NumPy members - I believe we generate these types here: https://github.com/rapidsai/cudf/blob/branch-23.04/python/cudf/cudf/core/udf/row_function.py#L30The consequence is that Numba raises when attempting to convert these members to NumPy dtypes.
Steps/Code to reproduce bug
Running the
test_string_udf_strip
test should reproduce the issue when Numba built from itsmain
branch is in the environment should cause this: i.e.pytest test_udf_masked_ops.py -k test_string_udf_strip
Expected behavior
Successful execution of the test.
Environment overview (please complete the following information)
Any environment in which Numba built from current
main
is present (or the 0.57 RC / release when it's out).Environment details
Not supplied.
Additional context
None.
The text was updated successfully, but these errors were encountered: