feature: duckdb EXPLAIN json plan tree #127
Labels
No labels
CI/CD
UI/UX
autorelease: pending
bug
docs
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
size
L
size
M
size
S
size
XL
size
XS
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
noe.trevino/dadbod-ui.nvim#127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
The duckdb adapter (#102) ships text-only
EXPLAIN/EXPLAIN ANALYZE. DuckDB also supportsEXPLAIN (FORMAT JSON), which could feed the structured plan-tree view like postgres and mysql do.Describe the solution you'd like
explain.json/json_analyzetemplates on the duckdb speclua/dadbod-ui/explain/parsers/duckdb.luamapping DuckDB's JSON plan node shape onto the tree renderer, with real-output fixturesKnown wrinkles (verified against duckdb v1.5.4)
Physical Planbanner before the JSON, so the parser has to strip leading non-JSON output (or the json_args need a mode that suppresses it)extra_infoblobs instead of typed fields)EXPLAIN ANALYZEexecutes the statement, so the analyzing JSON form needs the postgres-styleBEGIN; ...; ROLLBACK;wrapper if it's ever pointed at DML