Skip to content

Regression: reading multiple Parquet files #1015

@krlmlr

Description

@krlmlr

Introduced in c52bef5.

if (!file.exists("1.parquet")) {
  duckplyr::compute_parquet(data.frame(a = 1, b = 2), "1.parquet")
}
#> Loading duckplyr
#> # A duckplyr data frame: 2 variables
#>       a     b
#>   <dbl> <dbl>
#> 1     1     2
if (!file.exists("2.parquet")) {
  duckplyr::compute_parquet(data.frame(a = 2, b = 3), "2.parquet")
}
#> # A duckplyr data frame: 2 variables
#>       a     b
#>   <dbl> <dbl>
#> 1     2     3

urls <- c("1.parquet", "2.parquet")

con <- DBI::dbConnect(duckdb::duckdb())
duckdb:::rel_from_table_function(con, "read_parquet", list(list(urls)))
#> Error:
#> ! {"exception_type":"Invalid Input","exception_message":"Failed to cast value: Unimplemented type for cast (VARCHAR -> r_string)"}

Created on 2025-01-20 with reprex v2.1.1

duckdb 1.1.3-1

if (!file.exists("1.parquet")) {
  duckplyr::compute_parquet(data.frame(a = 1, b = 2), "1.parquet")
}
#> Loading duckplyr
#> # A duckplyr data frame: 2 variables
#>       a     b
#>   <dbl> <dbl>
#> 1     1     2
if (!file.exists("2.parquet")) {
  duckplyr::compute_parquet(data.frame(a = 2, b = 3), "2.parquet")
}
#> # A duckplyr data frame: 2 variables
#>       a     b
#>   <dbl> <dbl>
#> 1     2     3

urls <- c("1.parquet", "2.parquet")

con <- DBI::dbConnect(duckdb::duckdb())
duckdb:::rel_from_table_function(con, "read_parquet", list(list(urls)))
#> DuckDB Relation: 
#> ---------------------
#> --- Relation Tree ---
#> ---------------------
#> read_parquet([1.parquet, 2.parquet])
#> 
#> ---------------------
#> -- Result Columns  --
#> ---------------------
#> - a (DOUBLE)
#> - b (DOUBLE)

Created on 2025-01-20 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions