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

jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-sedona.git


The following commit(s) were added to refs/heads/master by this push:
     new 68c8527c [DOCS] remove DBI call in test-spatial-queries.R (#731)
68c8527c is described below

commit 68c8527c9aba3850ed202b09d2acfcd37feef3e3
Author: Yitao Li <[email protected]>
AuthorDate: Tue Dec 13 04:13:45 2022 -0400

    [DOCS] remove DBI call in test-spatial-queries.R (#731)
    
    Co-authored-by: Yitao Li <[email protected]>
---
 R/tests/testthat/test-spatial-queries.R | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/R/tests/testthat/test-spatial-queries.R 
b/R/tests/testthat/test-spatial-queries.R
index 15206882..c8896493 100644
--- a/R/tests/testthat/test-spatial-queries.R
+++ b/R/tests/testthat/test-spatial-queries.R
@@ -21,14 +21,15 @@ sc <- testthat_spark_connection()
 
 knn_query_pt_x <- -84.01
 knn_query_pt_y <- 34.01
-knn_query_pt_tbl <- DBI::dbGetQuery(
+knn_query_pt_tbl <- sdf_sql(
   sc,
   sprintf(
     "SELECT ST_GeomFromText(\"POINT(%f %f)\") AS `pt`",
     knn_query_pt_x,
     knn_query_pt_y
   )
-)
+) %>%
+  collect()
 knn_query_pt <- knn_query_pt_tbl$pt[[1]]
 knn_query_size <- 100
 polygon_sdf <- read_polygon_rdd() %>% sdf_register()

Reply via email to