paleolimbot opened a new pull request, #2073:
URL: https://github.com/apache/arrow-adbc/pull/2073
I think this didn't work because we only ever wrote COPY output to the
connection after each array, so if there were no arrays, there was no header
sent!
After this PR:
``` r
library(adbcdrivermanager)
#> Warning: package 'adbcdrivermanager' was built under R version 4.3.3
con <- adbc_database_init(
adbcpostgresql::adbcpostgresql(),
uri =
"postgresql://localhost:5432/postgres?user=postgres&password=password"
) |>
adbc_connection_init()
con |>
execute_adbc("DROP TABLE IF EXISTS no_integers")
nanoarrow::basic_array_stream(
list(),
nanoarrow::na_struct(list(x = nanoarrow::na_int32()))
) |>
write_adbc(con, "no_integers")
con |>
read_adbc("SELECT * from no_integers") |>
tibble::as_tibble()
#> # A tibble: 0 × 1
#> # ℹ 1 variable: x <int>
```
<sup>Created on 2024-08-11 with [reprex
v2.1.0](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]