This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git
The following commit(s) were added to refs/heads/main by this push:
new 4840702 fix(r): Support map conversion to R vector (#282)
4840702 is described below
commit 48407023bec41a58e7332de0d494b03c60f9604d
Author: Dewey Dunnington <[email protected]>
AuthorDate: Fri Aug 18 15:38:33 2023 -0300
fix(r): Support map conversion to R vector (#282)
Closes #281.
``` r
library(adbcdrivermanager)
library(nanoarrow)
db <- adbc_database_init(adbcsqlite::adbcsqlite(), uri = ":memory:")
con <- adbc_connection_init(db)
stream <- adbc_connection_get_info(con, 0)
tibble::as_tibble(stream)
#> # A tibble: 1 × 2
#> info_name info_value$string_value $bool_value $int64_value
$int32_bitmask
#> <dbl> <chr> <lgl> <dbl>
<int>
#> 1 0 SQLite NA NA
NA
#> # ℹ 2 more variables: info_value$string_list <list<chr>>,
#> # $int32_to_int32_list_map <list<df[,2]>>
```
<sup>Created on 2023-08-18 with [reprex
v2.0.2](https://reprex.tidyverse.org)</sup>
---
r/R/infer-ptype.R | 1 +
1 file changed, 1 insertion(+)
diff --git a/r/R/infer-ptype.R b/r/R/infer-ptype.R
index 0dff69d..460c4cb 100644
--- a/r/R/infer-ptype.R
+++ b/r/R/infer-ptype.R
@@ -91,6 +91,7 @@ infer_ptype_other <- function(schema) {
tzone = parsed$timezone
)
},
+ "map" = ,
"large_list" = ,
"list" = ,
"fixed_size_list" = {