duckdb-rs
duckdb-rs copied to clipboard
Unable to install duckdb on MacOS
I am seeing this error in using the Rust Client, duckdb-rs v 0.9.1 ( I also tried v0.8.1 but that did not help )
running 1 test Assertion failed: (dynamic_cast<TARGET *>(this)), function Cast, file duckdb/src/include/duckdb/parser/parsed_data/parse_info.hpp, line 41.
Code - https://github.com/duckdb/duckdb-rs/blob/main/examples/parquet.rs
I was able to get it work by directly linking the library by using - DUCKDB_INCLUDE_DIR, its the bundled version that doesn't seem to work
Hey @aditya-nambiar, are you still able to reproduce this?
❯ cargo run --example parquet --features bundled
Finished dev [unoptimized + debuginfo] target(s) in 0.11s
Running `target/debug/examples/parquet`
+-------+
| value |
+-------+
| 1.00 |
| 2.00 |
| 3.00 |
| 4.00 |
| 5.00 |
| 6.00 |
| 7.00 |
| 8.00 |
| 9.00 |
| 10.00 |
| 11.00 |
| 12.00 |
| 13.00 |
| 14.00 |
| 15.00 |
| 16.00 |
| 17.00 |
| 18.00 |
| 19.00 |
| 20.00 |
| 21.00 |
| 22.00 |
| 23.00 |
| 24.00 |
+-------+
The main branch (commit 3bff098fb34c8934226e777aefdd1d8b17a71478) works fine for me on macOS with Rust 1.74.0.
I just tried rust version 1.74, I am running into the same issue. Is it possible that the binary required is already linked in the your local setup