Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dbt-duckdb as a supported adapter and use it for local dev/test #710

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

jwills
Copy link
Contributor

@jwills jwills commented Aug 4, 2023

Resolves #583 (well, sort of)

Description

Adds dbt-duckdb as a supported adapter type and uses it for local dev/test workflows instead of the existing sqlalchemy-based client, which is removed. Note that this only partially addresses #583 in that it does not remove all of the sqlalchemy dependencies because I felt like doing that much surgery to the code was above my paygrade, but if you all have a rough plan of what that would look like I am happy to add it in to this PR to fully close out the issue.

@cla-bot cla-bot bot added the cla:yes label Aug 4, 2023
Copy link
Contributor

@tlento tlento left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks so much!

I think removing the last straggling dev-only SQLAlchemy dependency is beyond the scope of this PR. I'll file a separate issue to clean up some of this adapter configuration logic, and we can decide what to do about the environment configuration for the dbt profiles (and whether or not to replace the SQLAlchemy URL inputs) at that time.

Comment on lines +6 to +8
## DuckDB

We assume that you have SQLite installed in your environment. By default, tests will run with SQLite.
By default, tests will run with DuckDB.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thank you!

@tlento tlento merged commit 24cb500 into dbt-labs:main Aug 4, 2023
14 checks passed
@jwills jwills deleted the jwills_duckdb branch August 4, 2023 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean up DuckDB implementation and remove SqlAlchemy dependencies
2 participants