[ https://issues.apache.org/jira/browse/ARROW-1678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16206326#comment-16206326 ]
ASF GitHub Bot commented on ARROW-1678: --------------------------------------- Github user pcmoritz commented on the issue: https://github.com/apache/arrow/pull/1205 Thanks for the contribution! You will also need to add a case to https://github.com/Licht-T/arrow/blob/5a985b8b5fef6e3781de056bdc13f754a673376d/cpp/src/arrow/python/python_to_arrow.cc#L540 and can you also add a test to https://github.com/apache/arrow/blob/master/python/pyarrow/tests/test_tensor.py? > [Python] Incorrect serialization of numpy.float16 > ------------------------------------------------- > > Key: ARROW-1678 > URL: https://issues.apache.org/jira/browse/ARROW-1678 > Project: Apache Arrow > Issue Type: Bug > Components: Python > Affects Versions: 0.7.1 > Reporter: Licht Takeuchi > Labels: pull-request-available > Fix For: 0.8.0 > > > The issue can be reproduced as follows. > {code:python} > import pyarrow as pa > import numpy as np > t = np.float16(-1.1) > print(type(t), t) # <class 'numpy.float16'> -1.0996 > p = pa.serialize(t) > t_new = pa.deserialize(p.to_buffer()) > print(type(t_new), t_new) # <class 'int'> 0 > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)