Skip to content

Conversation

jbrockmendel
Copy link
Member

if pa.types.is_null(arr.type):
if lib.infer_dtype(values) == "decimal":
# GH#62522; the specific decimal precision here is arbitrary
arr = arr.cast(pa.decimal32(1))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While it would be nice to use a smaller 32 bit-width here, this API is only available in PyArrow 19 (evident by the xfail). I think we'll need to use decimal128 for our version compatibility.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea, updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: ArrowEA._cast_pointwise_result([Decimal(NaN)])

2 participants