-
Notifications
You must be signed in to change notification settings - Fork 91
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
Fix sqlite write #299
Fix sqlite write #299
Conversation
"type": "duckdb", | ||
"path": dbt_profile_target.get("path", ":memory:"), | ||
"attach": [ | ||
{'path': sqlite_test_db} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this need to have the sqlite
type included? I thought the default assumed a DuckDB database was being attached
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They show this approach in the sqlite_scanner
docs
I believe if the file has the .db
extension it is assumed to be sqlite
{% macro duckdb__create_schema(relation) -%} | ||
{%- call statement('create_schema') -%} | ||
create schema if not exists {{ relation.without_identifier() }} | ||
{% set sql %} | ||
select type from duckdb_databases() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit-ish question: when was this method added? I want to know if we need to do a bump from the minimal duckdb >= 0.7.0 dependency we include in setup.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9034654
to
0160f79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing, thank you so much @Nintorac!
Fixes #291