You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by np...@apache.org on 2022/06/06 20:41:10 UTC

[arrow] branch master updated: MINOR: [R] Fix duckdb test for dbplyr 2.2.0 internals change (#13323)

This is an automated email from the ASF dual-hosted git repository.

npr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 8c63788ff7 MINOR: [R] Fix duckdb test for dbplyr 2.2.0 internals change (#13323)
8c63788ff7 is described below

commit 8c63788ff7d52812599a546989b7df10887cb01e
Author: Neal Richardson <ne...@gmail.com>
AuthorDate: Mon Jun 6 16:40:56 2022 -0400

    MINOR: [R] Fix duckdb test for dbplyr 2.2.0 internals change (#13323)
    
    Authored-by: Neal Richardson <ne...@gmail.com>
    Signed-off-by: Neal Richardson <ne...@gmail.com>
---
 r/tests/testthat/test-duckdb.R | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/r/tests/testthat/test-duckdb.R b/r/tests/testthat/test-duckdb.R
index 82451017a4..088d7a4bbd 100644
--- a/r/tests/testthat/test-duckdb.R
+++ b/r/tests/testthat/test-duckdb.R
@@ -279,7 +279,8 @@ test_that("to_duckdb passing a connection", {
   table_four <- ds %>%
     select(int, lgl, dbl) %>%
     to_duckdb(con = con_separate, auto_disconnect = FALSE)
-  table_four_name <- table_four$ops$x
+  # dbplyr 2.2.0 renames this internal attribute to lazy_query
+  table_four_name <- table_four$ops$x %||% table_four$lazy_query$x
 
   result <- DBI::dbGetQuery(
     con_separate,