This repository was archived by the owner on Nov 19, 2023. It is now read-only.
This repository was archived by the owner on Nov 19, 2023. It is now read-only.
prql-query 0.0.14 doesn't build with duckdb 0.6.0 #22
Open
Description
duckdb just released version 0.6.0 that purports to fix #18, the "... got something else..." error message.
To reproduce, update the Cargo.toml to use duckdb version=0.6.0, then cargo build
. Here are the build messages:
?1 prql-query % cargo build
Updating crates.io index
Downloaded arrow-schema v26.0.0
Downloaded arrow-array v26.0.0
Downloaded arrow-select v26.0.0
Downloaded arrow-buffer v26.0.0
Downloaded arrow-data v26.0.0
Downloaded bindgen v0.61.0
Downloaded duckdb v0.6.0
Downloaded arrow v26.0.0
Downloaded libduckdb-sys v0.6.0
Downloaded 9 crates (3.3 MB) in 1.23s (largest was `libduckdb-sys` at 2.5 MB)
Compiling bindgen v0.61.0
Compiling arrow-schema v26.0.0
Compiling arrow-buffer v26.0.0
Compiling arrow v23.0.0
Compiling arrow-data v26.0.0
Compiling arrow-array v26.0.0
Compiling arrow-select v26.0.0
Compiling arrow v26.0.0
Compiling libduckdb-sys v0.6.0
Compiling parquet v23.0.0
Compiling duckdb v0.6.0
Compiling prql-query v0.0.14 (/Users/richb/github/prql-query)
error[E0277]: a value of type `Vec<arrow::record_batch::RecordBatch>` cannot be built from an iterator over elements of type `duckdb::arrow::record_batch::RecordBatch`
--> src/backends/duckdb.rs:133:37
|
133 | let rbs = stmt.query_arrow([])?.collect::<Vec<RecordBatch>>();
| ^^^^^^^ value of type `Vec<arrow::record_batch::RecordBatch>` cannot be built from `std::iter::Iterator<Item=duckdb::arrow::record_batch::RecordBatch>`
|
= help: the trait `FromIterator<duckdb::arrow::record_batch::RecordBatch>` is not implemented for `Vec<arrow::record_batch::RecordBatch>`
= help: the trait `FromIterator<T>` is implemented for `Vec<T>`
note: required by a bound in `std::iter::Iterator::collect`
--> /Users/richb/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:1832:19
|
1832 | fn collect<B: FromIterator<Self::Item>>(self) -> B
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `std::iter::Iterator::collect`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `prql-query` due to previous error
?101 prql-query %
Metadata
Metadata
Assignees
Labels
No labels