[
https://issues.apache.org/jira/browse/ARROW-17549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joost Hoozemans updated ARROW-17549:
------------------------------------
Description:
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
was:
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
> 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
> Priority: Major
>
> 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)