Closed
Description
What happens?
For example parquet for this dataset.
that has this schema:
0 | id | VARCHAR | false | null | false |
---|---|---|---|---|---|
1 | prompt | VARCHAR | false | null | false |
2 | chosen | STRUCT(bytes BLOB, path VARCHAR) | false | null | false |
3 | rejected | STRUCT(bytes BLOB, path VARCHAR) | false | null | false |
4 | chosen_model | VARCHAR | false | null | false |
5 | rejected_model | VARCHAR | false | null | false |
6 | evolution | VARCHAR | false | null | false |
7 | category | VARCHAR | false | null | false |
8 | sub_category | VARCHAR | false | null | false |
it seems to download 5 empty rows when doing JSON export.
copy (select * from dataset limit 5) to 'output.json';
however the CSV and Parquet command works properly.
copy (select * from dataset limit 5) to 'output.csv';
To Reproduce
You can reproduce here with these queries in DuckDB Shell
Browser/Environment:
Chrome Version 136
Device:
Mac
DuckDB-Wasm Version:
@duckdb/[email protected] (latest DuckDB Shell)
DuckDB-Wasm Deployment:
shell.duckdb.org
Full Name:
Caleb Fahlgren
Affiliation:
Hugging Face