Segfault when using `appender` with Generated Columns
samuelcolvin opened this issue · 0 comments
samuelcolvin commented
This may be related to #211, but I'm creating a new issue since:
- This the cause is somewhat different
- The SQL/logic here is completely valid, works fine with duckdb CLI
As far as I can tell, any/all generated columns cause appender.append_row
to seg fault immediately (I'm running on M1 MacOS, using duckdb = { version = "0.10.1", features = ["bundled"] }
).
Minimal reproduction:
fn main() -> Result<(), duckdb::Error> {
let conn = duckdb::Connection::open_in_memory()?;
conn.execute_batch(
r"CREATE TABLE foo (
foobar TEXT,
foobar_split TEXT[] AS (split(trim(foobar), ','))
);",
)?;
let mut appender = conn.appender("foo")?;
appender.append_row(duckdb::params!["foo"])?;
appender.flush();
Ok(())
}
Output:
cargo r
Finished dev [unoptimized + debuginfo] target(s) in 0.25s
Running `/Users/samuel/code/testing/target/debug/testing`
zsh: segmentation fault cargo r