duckdb / duckdb-wasm

WebAssembly version of DuckDB
https://shell.duckdb.org
MIT License
1.18k stars 124 forks source link

No repr shown for Maps #1671

Closed NickCrews closed 3 months ago

NickCrews commented 6 months ago

What happens?

Try these queries on shell.duckdb.org:

SELECT MAP(['key1', 'key2', 'key3'], [10, 20, 30]);
SELECT MAP([], []);
SELECT MAP(NULL::INT[], NULL::INT[]);

none of them show any output.

But, if you run these in another client, such as the CLI or python, then you see the result (although the NULL case is incorrect due to the unrelated https://github.com/duckdb/duckdb/issues/11115)

To Reproduce

above

Browser/Environment:

chrome 122.0.6261.94 (Official Build) (arm64)

Device:

2021 macbook M1 Max

DuckDB-Wasm Version:

@duckdb/duckdb-wasm@1.28.1-dev166.0

DuckDB-Wasm Deployment:

shell.duckdb.org

Full Name:

Nick Crews

Affiliation:

Ship Creek Group

carlopi commented 3 months ago

This is fixed by https://github.com/duckdb/duckdb-wasm/pull/1769, thanks to bumping arrow-rust that now supports maps

carlopi commented 3 months ago

Merged, this can be closed, thanks