nealrichardson commented on a change in pull request #11032:
URL: https://github.com/apache/arrow/pull/11032#discussion_r698713332
##########
File path: r/R/duckdb.R
##########
@@ -124,3 +122,9 @@ duckdb_disconnector <- function(con, tbl_name) {
})
environment()
}
+
+to_arrow <- function(.data) {
+ res <- DBI::dbSendQuery(dbplyr::remote_con(.data),
dbplyr::remote_query(.data), arrow = TRUE)
+
+ duckdb::duckdb_fetch_record_batch(res)$read_table()
Review comment:
Would either of these InMemoryDataset constructors work maybe?
https://github.com/apache/arrow/blob/master/cpp/src/arrow/dataset/dataset.h#L211-L216
cc @bkietz
--
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]