[ https://issues.apache.org/jira/browse/ARROW-10282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17212333#comment-17212333 ]
Joris Van den Bossche commented on ARROW-10282: ----------------------------------------------- Other example is the test with the custom MyInt class (https://github.com/apache/arrow/blob/0b481523b7502a984788d93b822a335894ffe648/python/pyarrow/tests/test_convert_builtin.py#L377) > [Python] Conversion from custom types (eg decimal) to int dtype raises warning > ------------------------------------------------------------------------------ > > Key: ARROW-10282 > URL: https://issues.apache.org/jira/browse/ARROW-10282 > Project: Apache Arrow > Issue Type: Bug > Components: Python > Reporter: Joris Van den Bossche > Priority: Major > > {code:python} > In [2]: import decimal > In [3]: pa.array([decimal.Decimal("123456")], pa.int32()) > DeprecationWarning: an integer is required (got type decimal.Decimal). > Implicit conversion to integers using __int__ is deprecated, and may be > removed in a future version of Python. > Out[3]: > <pyarrow.lib.Int32Array object at 0x7f4432032b80> > [ > 123456, > ] > {code} > cc [~kszucs] -- This message was sent by Atlassian Jira (v8.3.4#803005)