Skip to content

Commit

Permalink
fix evalue_required_docs, schema update
Browse files Browse the repository at this point in the history
  • Loading branch information
tnightengale committed Nov 30, 2020
1 parent b228969 commit 710289b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
8 changes: 4 additions & 4 deletions macros/utils/required_docs/evaluate_required_docs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@

{% for column in model_columns %}

{{ logger(column) }}
{{ logger(column) }}
{% if column | lower in model.columns.keys() %}
{% set column = column | lower %}

{% if column in model.columns.keys() %}

{{ logger(column ~ " is in " ~ model.columns.keys()) }}
{% if model.columns[column] == "" %}
{% if model.columns[column].description == "" %}

{% do missing_description_errors.append(" - " ~ model.name ~ "." ~ column) %}

Expand Down
7 changes: 1 addition & 6 deletions models/example/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
description: "A starter dbt model"
columns:
- name: id
description: "The primary key for this table"
description: ""
tests:
- unique
- not_null
Expand All @@ -22,8 +22,3 @@ models:
tests:
- unique
- not_null
- name: new
tests:
- unique
- not_null

0 comments on commit 710289b

Please sign in to comment.