generated from duckdb/extension-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Description
Several format options for the query and export tools don't produce the expected output format, instead falling back to a default tab-separated format with type headers.
Affected Formats
Query Tool
jsonl- Returns tab-separated instead of JSON Linestable- Returns tab-separated instead of ASCII tablebox- Returns tab-separated instead of box-drawing table
Export Tool
jsonl- Same issue as query tooltable/box- Same issue as query tool
Working Formats
json✅markdown✅csv✅
Example
SELECT * FROM usersWith format: "jsonl", expected:
{"id":"1","name":"Alice","email":"alice@example.com"}
{"id":"2","name":"Bob","email":"bob@example.com"}
Actual:
id name email created_at
INTEGER VARCHAR VARCHAR DATE
[ Rows: 4]
1 Alice alice@example.com 2024-01-15
2 Bob bob@example.com 2024-02-20
Notes
parquetformat for export also falls back to tab-separated, but parquet is a binary format so it doesn't make sense as a text return value anyway. Consider removing it as an option or only supporting it when an output file path is specified.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels