-
Notifications
You must be signed in to change notification settings - Fork 88
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
Any clue where / why this error might happen - "Parser Error: syntax error at or near "-" " #407
Comments
Mmm I think there are a few problems here.
|
hi @jwills , thank you for taking the time to respond
ack, will do so
this is not a duckDB db, is the and the result is to build a dynamic list of tables which belongs to the dataset (which exist in a non US region) so we can loop over it does that make sense? |
@DanyC97 that does make sense, but I don't see how DuckDB would help with that problem since I assume you need to use BigQuery to read that data; dbt-duckdb doesn't support queries that are intended to run against BigQuery. |
i understand, make sense. Maybe a small help with be the error message return to provide a bit more meaningful info although i'm not sure if that is on dbt-core side or dbt-duckdb |
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. ?
The text was updated successfully, but these errors were encountered: