suketa / ruby-duckdb

Ruby binding for DuckDB

Home Page:https://github.com/suketa/ruby-duckdb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

List Results are Always Nil

stephenprater opened this issue · comments

commented

When retrieving a list result from the DB, the results are always nil.

Minimal repro:

CREATE TABLE test (list INT[])
INSERT INTO test ([1,2])
SELECT * FROM test

Meanwhile in ruby land:

c = DuckDB::Database.open('test.duckdb').connect
c.query('select * from test').to_a #=> [[nil]] - should be [1,2]

@stephenprater

It is fixed by #659 only when DuckDB::Result.use_chunk_each is true (current default).