[Feature] GizmoSQL adapter for dbt v2
Is this your first time submitting a feature request?
- I have read the expectations for open source contributors
- I have searched the existing issues, and I could not find an existing issue for this feature
- I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion
Which version of dbt is this feature for?
dbt v2.x (Core or Fusion)
Describe the feature
Add GizmoSQL as a community adapter (type: gizmosql) for the dbt v2 engine.
GizmoSQL is an Arrow Flight SQL server backed by DuckDB, maintained by GizmoData. It lets teams run DuckDB as a shared, remote, authenticated server rather than an in-process embedded database. The Python dbt-gizmosql adapter already serves dbt Core 1.x users; this request is to bring it to v2.
Because GizmoSQL speaks the DuckDB dialect, the adapter can reuse most of what already exists for DuckDB:
- Dialect/metadata: handle
AdapterType::GizmoSQL/Backend::GizmoSQLalongside DuckDB (keywords, type rendering,DuckDBMetadataAdapter, relation lookup, column builder, constraint support). - Macros: inherit the
dbt-duckdbmacro package via dispatch (gizmosql→duckdb→default), the same waylakecomputedoes, with a smalldbt-gizmosqlpackage overriding only what a remote DuckDB needs (seeds via batchedinsert ... valuessince the server can't read the client's seed file, grants warn,get_binding_charreturns%s). - Driver: the gizmosql-adbc Go ADBC driver (a thin layer over the upstream Flight SQL ADBC driver), loaded from the system library path like Exasol's. Prebuilt shared libraries for linux/macos/windows × amd64/arm64 are on its releases page.
- Profile: keys and aliases matching the Python adapter's credentials (
host,port,username,password,database,schema,use_encryption,tls_skip_verify,auth_type: externalfor OAuth/SSO), so existingprofiles.ymltargets work unchanged. - Gating: experimental (
DBT_ALLOW_EXPERIMENTAL_ADAPTERS=true), not added toNON_EXPERIMENTAL_ADAPTERS.
Describe alternatives you've considered
- Staying on dbt Core 1.x with the Python
dbt-gizmosqladapter. That works today, but keeps GizmoSQL users off the v2 engine. - Using
type: duckdbin v2: that only targets an embedded/local DuckDB, not a remote Flight SQL server, so it doesn't cover this use case.
Who will this benefit?
Teams that want DuckDB's SQL and performance as a shared, multi-user server (e.g. a central GizmoSQL instance on Kubernetes or a VM, accessed over TLS with username/password or SSO), and existing dbt-gizmosql 1.x users who want to move to dbt v2.
Are you interested in contributing this feature?
Yes. An implementation is already open as #16289, contributed on behalf of GizmoData following the Contribute a dbt Core 2.0 adapter guide. It has been tested end to end against a GizmoSQL 1.40.0 server with driver 2.0.14 (jaffle-shop-classic dbt build, incremental models, snapshots, --full-refresh, docs generate, show). Happy to split it into smaller PRs if that's easier to review.
Anything else?
- Implementation PR: #16289
- For CI, a
gizmodata/gizmosqlDocker image is available (the server is a single binary), or GizmoData can provide a hosted instance. - Out of scope for the first cut: Python models and the DuckDB
externalmaterialization.
Source: dbt-labs/dbt-core