You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by pa...@apache.org on 2026/08/16 02:56:04 UTC

(sedona-db) branch main updated: chore(r/sedonadb): Print row count as ?? rather than NA (#1170)

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

paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-db.git


The following commit(s) were added to refs/heads/main by this push:
     new 2f805552e chore(r/sedonadb): Print row count as ?? rather than NA (#1170)
2f805552e is described below

commit 2f805552eb39f2bf72546e3ce842fb12fbbbd1e0
Author: Hiroaki Yutani <yu...@gmail.com>
AuthorDate: Sun Aug 16 11:55:59 2026 +0900

    chore(r/sedonadb): Print row count as ?? rather than NA (#1170)
---
 r/sdplyr/README.md                            | 4 ++--
 r/sdplyr/tests/testthat/_snaps/summarise.md   | 2 +-
 r/sedonadb/R/dataframe.R                      | 2 +-
 r/sedonadb/tests/testthat/_snaps/dataframe.md | 4 ++--
 r/sedonafns/README.md                         | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/r/sdplyr/README.md b/r/sdplyr/README.md
index 0509e6137..e039f1b69 100644
--- a/r/sdplyr/README.md
+++ b/r/sdplyr/README.md
@@ -85,7 +85,7 @@ cities |>
   ) |>
   arrange(country) |>
   head(10)
-#> <sedonab_dataframe: NA x 3>
+#> <sedonab_dataframe: ?? x 3>
 #> ┌──────────────┬─────────────┬───────────────┐
 #> │     city     ┆   country   ┆   continent   │
 #> │     utf8     ┆     utf8    ┆      utf8     │
@@ -117,7 +117,7 @@ cities |>
       wk::rct(-80, 40, -60, 60, wk::wk_crs_longlat())
     )
   )
-#> <sedonab_dataframe: NA x 2>
+#> <sedonab_dataframe: ?? x 2>
 #> ┌──────────┬─────────────────────────────────────────────┐
 #> │   name   ┆                   geometry                  │
 #> │   utf8   ┆                   geometry                  │
diff --git a/r/sdplyr/tests/testthat/_snaps/summarise.md b/r/sdplyr/tests/testthat/_snaps/summarise.md
index 81d93dba1..c16d279fd 100644
--- a/r/sdplyr/tests/testthat/_snaps/summarise.md
+++ b/r/sdplyr/tests/testthat/_snaps/summarise.md
@@ -14,7 +14,7 @@
       In sdplyr, groups are dropped by default on summarise
       i Use .groups = "drop" to suppress this message
     Output
-      <sedonab_dataframe: NA x 1>
+      <sedonab_dataframe: ?? x 1>
       +---------+
       |  total  |
       | float64 |
diff --git a/r/sedonadb/R/dataframe.R b/r/sedonadb/R/dataframe.R
index f9ad5b135..c6496723d 100644
--- a/r/sedonadb/R/dataframe.R
+++ b/r/sedonadb/R/dataframe.R
@@ -269,7 +269,7 @@ sd_preview <- function(.data, n = NULL, ascii = NULL, width = NULL) {
 
   cat(
     sprintf(
-      "<%ssedonab_dataframe: NA x %d%s>\n",
+      "<%ssedonab_dataframe: ?? x %d%s>\n",
       grouped_label,
       length(schema$children),
       grouped_vars
diff --git a/r/sedonadb/tests/testthat/_snaps/dataframe.md b/r/sedonadb/tests/testthat/_snaps/dataframe.md
index b012555e5..916bb64ce 100644
--- a/r/sedonadb/tests/testthat/_snaps/dataframe.md
+++ b/r/sedonadb/tests/testthat/_snaps/dataframe.md
@@ -15,7 +15,7 @@
     Code
       print(df)
     Output
-      <sedonab_dataframe: NA x 1>
+      <sedonab_dataframe: ?? x 1>
       +------------+
       |     pt     |
       |  geometry  |
@@ -29,7 +29,7 @@
     Code
       print(grouped)
     Output
-      <grouped sedonab_dataframe: NA x 1 | [`x`]>
+      <grouped sedonab_dataframe: ?? x 1 | [`x`]>
       +------------+
       |     pt     |
       |  geometry  |
diff --git a/r/sedonafns/README.md b/r/sedonafns/README.md
index 6c1866586..8a26644dc 100644
--- a/r/sedonafns/README.md
+++ b/r/sedonafns/README.md
@@ -59,7 +59,7 @@ sd_read_sf(system.file("shape/nc.shp", package = "sf")) |>
     NAME,
     area = sd_area(wkb_geometry)
   )
-#> <sedonab_dataframe: NA x 2>
+#> <sedonab_dataframe: ?? x 2>
 #> ┌─────────────┬─────────────────────┐
 #> │     NAME    ┆         area        │
 #> │     utf8    ┆       float64       │