nealrichardson commented on a change in pull request #11971:
URL: https://github.com/apache/arrow/pull/11971#discussion_r796626237
##########
File path: r/R/csv.R
##########
@@ -718,6 +718,8 @@ write_csv_arrow <- function(x,
csv___WriteCSV__RecordBatch(x, write_options, sink)
} else if (inherits(x, "Table")) {
csv___WriteCSV__Table(x, write_options, sink)
+ } else if (inherits(x, "FileSystemDataset")) {
+ csv___WriteCSV__RecordBatchReader(x, write_options, sink)
Review comment:
This doesn't make sense. You have a FileSystemDataset but you're passing
it to a C++ function that expects RecordBatchReader. This will segfault. Is
this the code you're running in ARROW-15128?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]