[ 
https://issues.apache.org/jira/browse/PARQUET-1403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16977620#comment-16977620
 ] 

Artem KOZHEVNIKOV commented on PARQUET-1403:
--------------------------------------------

in version 0.15.1 one has the following error :

{code:python}
 pa.array(np.array([0.1, 1.2, 2.3], dtype='float16'), type=pa.float64())        
                                                     
---------------------------------------------------------------------------
ArrowNotImplementedError                  Traceback (most recent call last)
<ipython-input-4-f7961f44e850> in <module>
----> 1 pa.array(np.array([0.1, 1.2, 2.3], dtype='float16'), type=pa.float64())


~/Projects/miniconda3/envs/myenv/lib/python3.7/site-packages/pyarrow/array.pxi 
in pyarrow.lib.array()


~/Projects/miniconda3/envs/myenv/lib/python3.7/site-packages/pyarrow/array.pxi 
in pyarrow.lib._ndarray_to_array()


~/Projects/miniconda3/envs/myenv/lib/python3.7/site-packages/pyarrow/error.pxi 
in pyarrow.lib.check_status()


ArrowNotImplementedError: No cast implemented from halffloat to double
{code}

> [C++] Coerce Arrow half-precision float to float32
> --------------------------------------------------
>
>                 Key: PARQUET-1403
>                 URL: https://issues.apache.org/jira/browse/PARQUET-1403
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-cpp
>    Affects Versions: cpp-1.4.0
>            Reporter: Naor Volkovich
>            Priority: Major
>
> When trying to save a Pandas DF using "to_parquet" when that DF has a column 
> with a dtype of float16, I get the error: 
> "pyarrow.lib.ArrowNotImplementedError: Unhandled type for Arrow to Parquet 
> schema conversion: halffloat"



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to