[jira] [Updated] (ARROW-15822) [C++] Cast duration to string (thus CSV writing) not supported
[ https://issues.apache.org/jira/browse/ARROW-15822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated ARROW-15822: --- Labels: pull-request-available (was: ) > [C++] Cast duration to string (thus CSV writing) not supported > -- > > Key: ARROW-15822 > URL: https://issues.apache.org/jira/browse/ARROW-15822 > Project: Apache Arrow > Issue Type: Bug > Components: C++, R >Affects Versions: 7.0.0, 7.0.2 >Reporter: Carl Boettiger >Assignee: Ben Harkins >Priority: Critical > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > Edit (Dragos Moldovan-Grünfeld): The issue I opened (ARROW-15833) is > basically a duplicate of this. It's fundamentally a C++ issue that happened > to surface in the R CSV writer. I hope you don't mind, I modified the > components to C++ > === > Consider this reprex: > {code:java} > arrow::write_csv_arrow(data.frame(time = as.difftime(1, units="secs")), > "test.csv"){code} > This errors with: > Error: NotImplemented: Unsupported cast from duration[s] to utf8 using > function cast_string > > Note that readr::write_csv() has no trouble with this (which renders the data > as "1" without a unit). Arguably the readr rendering is lossy, but then we > usually assume units are provided in other metadata anyway. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (ARROW-15822) [C++] Cast duration to string (thus CSV writing) not supported
[ https://issues.apache.org/jira/browse/ARROW-15822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Keane updated ARROW-15822: --- Fix Version/s: (was: 9.0.0) > [C++] Cast duration to string (thus CSV writing) not supported > -- > > Key: ARROW-15822 > URL: https://issues.apache.org/jira/browse/ARROW-15822 > Project: Apache Arrow > Issue Type: Bug > Components: C++, R >Affects Versions: 7.0.0, 7.0.1 >Reporter: Carl Boettiger >Priority: Critical > > Edit (Dragos Moldovan-Grünfeld): The issue I opened (ARROW-15833) is > basically a duplicate of this. It's fundamentally a C++ issue that happened > to surface in the R CSV writer. I hope you don't mind, I modified the > components to C++ > === > Consider this reprex: > {code:java} > arrow::write_csv_arrow(data.frame(time = as.difftime(1, units="secs")), > "test.csv"){code} > This errors with: > Error: NotImplemented: Unsupported cast from duration[s] to utf8 using > function cast_string > > Note that readr::write_csv() has no trouble with this (which renders the data > as "1" without a unit). Arguably the readr rendering is lossy, but then we > usually assume units are provided in other metadata anyway. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (ARROW-15822) [C++] Cast duration to string (thus CSV writing) not supported
[ https://issues.apache.org/jira/browse/ARROW-15822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neal Richardson updated ARROW-15822: Fix Version/s: 9.0.0 > [C++] Cast duration to string (thus CSV writing) not supported > -- > > Key: ARROW-15822 > URL: https://issues.apache.org/jira/browse/ARROW-15822 > Project: Apache Arrow > Issue Type: Bug > Components: C++, R >Affects Versions: 7.0.0, 7.0.1 >Reporter: Carl Boettiger >Priority: Critical > Fix For: 9.0.0 > > > Edit (Dragos Moldovan-Grünfeld): The issue I opened (ARROW-15833) is > basically a duplicate of this. It's fundamentally a C++ issue that happened > to surface in the R CSV writer. I hope you don't mind, I modified the > components to C++ > === > Consider this reprex: > {code:java} > arrow::write_csv_arrow(data.frame(time = as.difftime(1, units="secs")), > "test.csv"){code} > This errors with: > Error: NotImplemented: Unsupported cast from duration[s] to utf8 using > function cast_string > > Note that readr::write_csv() has no trouble with this (which renders the data > as "1" without a unit). Arguably the readr rendering is lossy, but then we > usually assume units are provided in other metadata anyway. -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Updated] (ARROW-15822) [C++] Cast duration to string (thus CSV writing) not supported
[ https://issues.apache.org/jira/browse/ARROW-15822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neal Richardson updated ARROW-15822: Summary: [C++] Cast duration to string (thus CSV writing) not supported (was: [C++] Cast duration to string not supported) > [C++] Cast duration to string (thus CSV writing) not supported > -- > > Key: ARROW-15822 > URL: https://issues.apache.org/jira/browse/ARROW-15822 > Project: Apache Arrow > Issue Type: Bug > Components: C++, R >Affects Versions: 7.0.0, 7.0.1 >Reporter: Carl Boettiger >Priority: Critical > > Edit (Dragos Moldovan-Grünfeld): The issue I opened (ARROW-15833) is > basically a duplicate of this. It's fundamentally a C++ issue that happened > to surface in the R CSV writer. I hope you don't mind, I modified the > components to C++ > === > Consider this reprex: > {code:java} > arrow::write_csv_arrow(data.frame(time = as.difftime(1, units="secs")), > "test.csv"){code} > This errors with: > Error: NotImplemented: Unsupported cast from duration[s] to utf8 using > function cast_string > > Note that readr::write_csv() has no trouble with this (which renders the data > as "1" without a unit). Arguably the readr rendering is lossy, but then we > usually assume units are provided in other metadata anyway. -- This message was sent by Atlassian Jira (v8.20.7#820007)