0
0
dbtdata~5 mins

Column descriptions in dbt - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of column descriptions in dbt?
Column descriptions explain what each column in a table or model means. They help others understand the data clearly, like labels on jars in a kitchen.
Click to reveal answer
beginner
How do you add a column description in a dbt model YAML file?
You add a description under the columns section in the YAML file like this:<br>
columns:<br>  - name: customer_id<br>    description: 'Unique ID for each customer'
Click to reveal answer
beginner
Why are column descriptions important for data teams?
They make data easier to understand and use. This reduces mistakes and saves time when people explore or analyze data.
Click to reveal answer
beginner
Can column descriptions be viewed in dbt documentation site?
Yes! When you run dbt docs generate and dbt docs serve, the descriptions appear in the documentation site next to each column.
Click to reveal answer
beginner
What happens if you don’t provide a column description in dbt?
The column will show without explanation in the docs. This can confuse users who don’t know what the data means.
Click to reveal answer
Where do you add column descriptions in dbt?
AIn the model YAML file under columns
BInside the SQL SELECT statement
CIn the dbt_project.yml file
DIn the profiles.yml file
What command shows column descriptions in a web page?
Adbt run
Bdbt docs serve
Cdbt test
Ddbt compile
Why should you write clear column descriptions?
ATo help users understand data easily
BTo make SQL run faster
CTo reduce file size
DTo hide sensitive data
Which format is used to write column descriptions in dbt?
ACSV
BJSON
CXML
DYAML
What happens if a column has no description in dbt docs?
AIt causes an error
BIt is hidden
CIt shows without explanation
DIt is automatically described
Explain how to add and view column descriptions in dbt.
Think about where YAML files are and how dbt shows docs.
You got /3 concepts.
    Why are column descriptions useful in a data project?
    Imagine explaining data to a new teammate.
    You got /3 concepts.