Open rafapereirabr opened 1 month ago
I have a similiar issue. specifically in a webassemly environment. Please let me know if this should be a separate issue.
```{webr}
#| edit: false
library(dplyr)
library(duckdb)
url <- "https://huggingface.co/datasets/SALURBAL/salurbal-metadata/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet"
# Create a connection to DuckDB
con <- dbConnect(duckdb())
# Install and load the httpfs extension
dbExecute(con, "INSTALL httpfs;")
dbExecute(con, "LOAD httpfs;")
## Query
result <- dbGetQuery(con, sprintf("SELECT * FROM parquet_scan('%s') LIMIT 5", url))
See this Webr-notebook with the error
R version 4.4.1 (2024-06-14)
Platform: wasm32-unknown-emscripten (32-bit)
Running under: emscripten
Matrix products: default
locale:
[1] en_US.UTF-8 C en_US.UTF-8 en_US.UTF-8 en_US.UTF-8 C
time zone: America/Indianapolis
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] duckdb_1.0.0-2 DBI_1.2.3 dplyr_1.1.4 htmltools_0.5.8.1
[5] knitr_1.48 evaluate_0.24.0
loaded via a namespace (and not attached):
[1] digest_0.6.37 utf8_1.2.4 R6_2.5.1 fastmap_1.2.0
[5] tidyselect_1.2.1 xfun_0.47 webr_0.4.1 magrittr_2.0.3
[9] glue_1.7.0 tibble_3.2.1 pkgconfig_2.0.3 generics_0.1.3
[13] lifecycle_1.0.4 cli_3.6.3 fansi_1.0.6 vctrs_0.6.5
[17] tools_4.4.1 pillar_1.9.0 rlang_1.1.4
I have a similiar issue. specifically in a webassemly environment. Please let me know if this should be a separate issue.
I think that is duplicate of #66
but this has been a persistent problem in my computer at the office (also Windows).
Could it be a proxy issue? You should check duckdb/duckdb#13368 In general, it is a good practice to check if it is an R-specific problem or if the same problem occurs with other clients. I recommend to check if the same error occurs in the CLI.
I'm having a small issue when trying to install {duckdb} extensions on my Windows machine. I suspect this is because duckdb is pointing to a
http
url, instead of ahttps
url. See reprex and R session below.ps. I had no problem running this code on my personal computer (Windows), but this has been a persistent problem in my computer at the office (also Windows).
reprex
R session