diff --git a/integration_tests/models/staging/source_1/source.yml b/integration_tests/models/staging/source_1/source.yml index f4e9495e..4e55fa28 100644 --- a/integration_tests/models/staging/source_1/source.yml +++ b/integration_tests/models/staging/source_1/source.yml @@ -8,6 +8,9 @@ sources: tables: - name: table_1 description: this is table 1. + columns: + - name: my_column + description: description for my source column - name: table_2 - name: table_4 - name: table_5 diff --git a/models/staging/graph/base/base_source_columns.sql b/models/staging/graph/base/base_source_columns.sql index e71adc16..98705232 100644 --- a/models/staging/graph/base/base_source_columns.sql +++ b/models/staging/graph/base/base_source_columns.sql @@ -18,6 +18,9 @@ select cast(null as {{ dbt.type_string()}}) as name, cast(null as {{ dbt_project_evaluator.type_large_string()}}) as description, cast(null as {{ dbt.type_string()}}) as data_type, + cast(null as {{ dbt.type_string()}}) as constraints, + cast(True as boolean) as has_not_null_constraint, + cast(0 as {{ dbt.type_int() }}) as constraints_count, cast(null as {{ dbt.type_string()}}) as quote from dummy_cte