krlmlr opened a new issue, #347: URL: https://github.com/apache/arrow-nanoarrow/issues/347
- Should we allow `infer_nanoarrow_schema()` on schema objects? - Should we allow `infer_nanoarrow_ptype()` on R objects, effectively emulating data roundtrip? For DBI. ``` r library(nanoarrow) df <- data.frame(a = 1:3, b = 4.5, c = "five") schema <- nanoarrow::infer_nanoarrow_schema(df) nanoarrow::infer_nanoarrow_schema(schema) #> Error in infer_nanoarrow_schema.default(schema): Can't infer Arrow type for object of class nanoarrow_schema nanoarrow::infer_nanoarrow_ptype(df) #> Error in nanoarrow::infer_nanoarrow_ptype(df): `x` must be a nanoarrow_schema(), nanoarrow_array(), or nanoarrow_array_stream() tibble::as_tibble(nanoarrow::infer_nanoarrow_ptype(schema)) #> # A tibble: 0 × 3 #> # ℹ 3 variables: a <int>, b <dbl>, c <chr> ``` <sup>Created on 2023-12-25 with [reprex v2.0.2](https://reprex.tidyverse.org)</sup> -- 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]
