jonkeane commented on a change in pull request #11032:
URL: https://github.com/apache/arrow/pull/11032#discussion_r698705820



##########
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:
       We shouldn't need to read the full table here, though I haven't (yet) 
found a simple way to create a Dataset from a RecordBatchReader without 
materializing here.




-- 
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]


Reply via email to