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

ASF GitHub Bot updated ARROW-15040:
-----------------------------------
    Labels: pull-request-available  (was: )

> [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
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to