fix: data testing
This commit is contained in:
5
dbt/macros/elementary_compat.sql
Normal file
5
dbt/macros/elementary_compat.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- Compatibility shim: dbt 1.11 changed macro resolution so unnamespaced intra-package
|
||||
-- calls from elementary no longer resolve. Forwarding macro makes it findable globally.
|
||||
{% macro get_upload_artifact_method(table_relation, metadata_hashes) %}
|
||||
{% do return(elementary.get_upload_artifact_method(table_relation, metadata_hashes)) %}
|
||||
{% endmacro %}
|
||||
@@ -120,7 +120,7 @@ sources:
|
||||
tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values: ["funda", "woz", "cadastre"]
|
||||
values: ["Funda", "WOZ"]
|
||||
- name: status
|
||||
description: Price event type (asking_price, sold, or woz).
|
||||
tests:
|
||||
|
||||
@@ -89,7 +89,7 @@ models:
|
||||
data_type: text
|
||||
tests:
|
||||
- accepted_values:
|
||||
values: ["A+++", "A++", "A+", "A", "B", "C", "D", "E", "F", "G"]
|
||||
values: ["A3", "A2", "A1", "A", "B", "C", "D", "E", "F", "G"]
|
||||
where: "energy_label is not null"
|
||||
- name: living_area
|
||||
description: Interior floor area in m².
|
||||
|
||||
@@ -48,7 +48,7 @@ models:
|
||||
tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values: ["funda", "woz", "cadastre"]
|
||||
values: ["Funda", "WOZ"]
|
||||
- name: price_status
|
||||
description: Type of price event.
|
||||
data_type: text
|
||||
|
||||
@@ -2,4 +2,4 @@ packages:
|
||||
- package: dbt-labs/dbt_utils
|
||||
version: [">=1.0.0", "<2.0.0"]
|
||||
- package: elementary-data/elementary
|
||||
version: [">=0.16.0", "<0.17.0"]
|
||||
version: [">=0.22.0", "<0.23.0"]
|
||||
|
||||
Reference in New Issue
Block a user