You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joost Hoozemans (Jira)" <ji...@apache.org> on 2022/08/29 13:43:00 UTC

[jira] [Updated] (ARROW-17549) [C++] unsupported cast from halffloat to utf8

     [ https://issues.apache.org/jira/browse/ARROW-17549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joost Hoozemans updated ARROW-17549:
------------------------------------
    Summary: [C++] unsupported cast from halffloat to utf8  (was: unsupported cast from halffloat to utf8)

> [C++] 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)