-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new docs page 'Querying Columns'
- Loading branch information
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Querying columns with SQL | ||
|
||
The model `int_all_columns` ([source](https://github.com/dbt-labs/dbt-project-evaluator/tree/main/models/marts/core/int_all_columns.sql)), created with the package, lists all the columns from all the dbt nodes (models, sources, seeds, snapshots, analyses) | ||
|
||
You can you use this model to answer questions like: | ||
|
||
- Are there any columns with the same name in different nodes? | ||
- Are there any columns without a description? | ||
- Are there any columns with the same name but different descriptions? | ||
- Are there any columns with names matching a regex? | ||
- Have any forbidden names been used for columns? | ||
|
||
|
||
## Defining additional tests that match your exact requirements | ||
|
||
- writing a model with `ref(int_all_columns)` with custom tests added for a specific use case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,4 @@ models: | |
- dbt_utils.unique_combination_of_columns: | ||
combination_of_columns: | ||
- unique_id | ||
- column_name | ||
- name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters