You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Joost Hoozemans (Jira)" <ji...@apache.org> on 2022/08/29 13:32:00 UTC
[jira] [Created] (ARROW-17549) unsupported cast from halffloat to utf8
Joost Hoozemans created ARROW-17549:
---------------------------------------
Summary: unsupported cast from halffloat to utf8
Key: ARROW-17549
URL: https://issues.apache.org/jira/browse/ARROW-17549
Project: Apache Arrow
Issue Type: Bug
Components: C++
Affects Versions: 7.0.0
Reporter: Joost Hoozemans
Related to https://issues.apache.org/jira/browse/ARROW-17464 but for CSV.
When writing a table that contains halffloats to CSV:
{{{code:python}}}
import pyarrow as pa
import pyarrow.csv as csv
import numpy as np
t = pa.table(\{'a': [np.float16(1.0),np.float16(2.0)]}, schema=pa.schema([pa.field("a", pa.float16())]))
csv.write_csv(t, "out.csv")
{code}
Output:
pyarrow.lib.ArrowNotImplementedError: Unsupported cast from halffloat to utf8 using function cast_string
--
This message was sent by Atlassian Jira
(v8.20.10#820010)