[
https://issues.apache.org/jira/browse/ARROW-15040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nicola Crane reassigned ARROW-15040:
------------------------------------
Assignee: Nicola Crane
> [R] Enable write_csv_arrow to take a RecordBatchReader as input
> ---------------------------------------------------------------
>
> Key: ARROW-15040
> URL: https://issues.apache.org/jira/browse/ARROW-15040
> Project: Apache Arrow
> Issue Type: Improvement
> Components: R
> Reporter: Nicola Crane
> Assignee: Nicola Crane
> Priority: Major
>
> Currently, this code fails:
> {code:r}
> dataset <- open_dataset("some/folder/with/parquet/files")
> write_csv_arrow(dataset, sink = "dataset.csv")
> {code}
> with this error message:
> {code:r}
> Error: x must be an object of class 'data.frame', 'RecordBatch', or 'Table',
> not 'FileSystemDataset'.
> {code}
> In ARROW-14741, support was added for reading from a RecordBatchReader, so we
> should be able to now extend {{write_csv_arrow()}} to allow this behaviour.
>
> Note: We would need to make sure whatever write_csv(record_batch_reader)
> function can take a filesystem= argument
--
This message was sent by Atlassian Jira
(v8.20.1#820001)