Open DanyC97 opened 1 week ago
👋 @jwills , @guenp sorry to tag you directly. Any chance you might be familiar with the codebase, if so are you able to shed some light where i can start digging further?
thank you.
Mmm I think there are a few problems here.
1) You definitely need to add "
around the {{ dataset }}
variable in the model SQL; dbt doesn't do that for you for variables, only for relations it controls.
2) I don't understand why the resulting "project-bq-export.gcp_billing".INFORMATION_SCHEMA.TABLES
relation exists-- what is project-bq-export.gcp_billing
? Is it a DuckDB database? Something else?
Hi there,
Given the latest version of duckdb and dbt-core and using the below configuration, i'm bumping into an issue where the debug error message doesn't help at all where run
dbt --debug docs generate
Note, if i have different targets of type bigquery and run
dbt run
it compiles and works as expected, no issues. Is just when using with duckdb ....profile.yml
in
dbt_profile.yml
i have defined a variable as belowin the model sql file i have
and the error is
Now based on my understanding i don't need to provide the backticks to
FROM
{{ dataset }}.INFORMATION_SCHEMA.TABLES
as i don't have any special chars. However i've tried to dig into your code as well as dbt-core ( i.e https://github.com/dbt-labs/dbt-core/tree/main/core/dbt/parser ) but couldn't find much.Due to lack of more debug info i'm a bit in the dark, could the issue arises due to the way dbt handles string interpolation and how DuckDB interprets identifiers. ?