dbt Questions
3
I would like to declare and init a variable in a dbt model customer.sql file.
I used the keyword DECLARE to declare a variable like the BigQuery documentation suggests but I got
a Syntax error on D...
Lemming asked 8/12, 2021 at 12:4
2
Solved
I'm trying to determine how I can conditionally set schema config attributes. I've attempted this by a macro in both dbt_project.yml and also in schema.yml but both of these methods fail with:
00:2...
Kismet asked 1/9, 2022 at 0:40
1
dbt's built in docs is amazing for tracking data lineage, data dictionaries, business rules etc. But publishing these docs to a central place in a secure way without using dbt Cloud is proving to b...
Collude asked 24/9, 2023 at 6:53
4
Solved
Is there an easy way to write a test for a column being positive in dbt?
accepted_values doesn't seem to work for continuous variables.
I know you can write queries in ./tests but it looks like an ...
Mulct asked 1/7, 2020 at 11:17
3
Solved
I use SQLFluff to ensure a uniform syntax in the company and reduce error warnings before running the models in dbt. Since our syntax does not completely match the syntax of SQLFluff I would like t...
Rapper asked 30/3, 2021 at 21:2
1
I have a Snowflake account that uses MFA.
Logging in to Snowflake promtps for the MFA and I receive a push notification on my phone. Approving that logs me in.
When setting up DBT Cloud it asks for...
Andreaandreana asked 9/9, 2022 at 10:13
11
I would like to use dbt (Data build tool) in one of my project. I am facing hurdle while creating a project or using DBT command.
I have completed the installation process as described on DBT web...
Chanteuse asked 2/12, 2019 at 10:24
5
I'm trying to connect to snowflake via dbt but connections fail with the error below:
Using profiles.yml file at /home/myname/.dbt/profiles.yml
Using dbt_project.yml file at /mnt/c/Users/Public/lea...
Groundsel asked 3/7, 2020 at 7:46
2
Solved
For incremental models, the DBT documentation here says:
The unique_key should be supplied in your model definition as a string representing a simple column or a list of single quoted column names...
Transmutation asked 20/5, 2022 at 20:17
3
Solved
I started to migrate some of your transformations jobs to DBT. As you can see on the image bellow, there is usually 1 to 2 transformations before to have our final table (up to 5 transformations in...
Exhaust asked 29/6, 2022 at 9:45
1
Solved
When running dbt with descendants, I would like to exclude two models. I can exclude one model like so:
dbt run ga4_update_set+ --exclude nz_daily_cohorts
The above works as expected.
I tried the ...
Kellda asked 1/3, 2023 at 6:52
4
Hi I am trying to define a select statement in a set variable in dbt,
can any one suggest how to set sql query as a variable in dbt and how to access those variables in below CTEs?
Crabbing asked 22/9, 2020 at 9:52
1
I have a DBT package named dbt_helpers, where i intend to override some of dbt's in built global macros. In this example i intend to override the macro dbt_spark_validate_get_file_format, which is ...
Furrow asked 23/2, 2023 at 11:49
1
I am trying to set a date variable within a dbt model to be the date 7 days ago. The model will run against a Redshift database. I have done the following to set the variable, however I get the err...
Cardie asked 19/1, 2023 at 16:42
1
Solved
I have a DBT project, and a python script will be grabbing data from the postgresql to produce output.
However, part of the python script will need to make the DBT run. I haven't found the library ...
3
Solved
Is there a way to check what packages are installed? I would expect something like dbt list packages?
The context is:
Until I run dbt deps the content of packages.yml gives me nothing. And there a...
Liturgy asked 5/8, 2022 at 8:25
1
Solved
I want to create an empty table with specific columns and data types, I don't have any reference table from where I can do SELECT * FROM . The following link has an image which I intend to do Pleas...
4
My aim is to be able to have "dynamic" sources depending on the type of DBT run I am doing. To be more precise, I am trying to find a solution to perform end-to-end business testing of ou...
Ascription asked 6/12, 2021 at 11:15
3
I'm new to dbt, I am successfully able to create my models and schemas and macros, but when I do dbt docs generate I get manifest.json, but not catalog.json and so dbt docs serve is failing. It thr...
Kin asked 22/3, 2022 at 19:4
2
I've been considering turning on Databricks Unity Catalog in our primary (only) workspace, but I'm concerned about how this might impact our existing dbt loads with the new three-part object refere...
Whack asked 12/9, 2022 at 23:5
5
connection to dbt and snowfalke was successful but when tried to run this command:
$ dbt run
it gives this error
ERROR: Runtime Error
Could not find profile named 'learn_dbt'
Encountered an error...
Charter asked 5/7, 2020 at 15:0
1
We've been using Snowflake+DBT with key pair authentication for a long time now, and we've never had any issues.
Recently, we started getting random connection errors on some models:
250001 (08001)...
Manche asked 19/10, 2021 at 22:14
1
I’m trying to make one model in dbt depend on another (trying to run the second model after the first one is completely finished), but I’m confused, when to use ref() or source()?
What is the diffe...
Schlessel asked 20/9, 2022 at 10:0
4
I keep getting the error below when I use dbt run - I can't find anything on why this error occurs or how to fix it within the dbt documentation.
[WARNING]: Did not find matching node for patch wit...
Extravagant asked 13/1, 2022 at 10:35
3
Solved
I'm trying to select the latest partition from a BigQuery table without scanning the whole table in a DBT model in order to save query costs.
DBT doesnt allow using semicolons in a data model so us...
Dulcinea asked 19/2, 2021 at 11:58
1 Next >
© 2022 - 2024 — McMap. All rights reserved.