diff --git a/models/_samples/override_naming_model_yaml.sql b/_samples/override_naming_model_yaml.sql similarity index 100% rename from models/_samples/override_naming_model_yaml.sql rename to _samples/override_naming_model_yaml.sql diff --git a/models/_samples/snapshot/_snapshot__models.yml b/models/_samples/snapshot/_snapshot__models.yml index a6786f4..a6d91e8 100644 --- a/models/_samples/snapshot/_snapshot__models.yml +++ b/models/_samples/snapshot/_snapshot__models.yml @@ -5,5 +5,4 @@ models: columns: - name: surrogate_key tests: - - unique - not_null \ No newline at end of file diff --git a/models/staging/stripe/stg_stripe__payments.sql b/models/staging/stripe/stg_stripe__payments.sql index 61ede9e..b448f9c 100644 --- a/models/staging/stripe/stg_stripe__payments.sql +++ b/models/staging/stripe/stg_stripe__payments.sql @@ -1,5 +1,4 @@ -- example showing staging model after snapshot - select -- ids id as payment_id, diff --git a/models/staging/stripe/stg_stripe__payments.yml b/models/staging/stripe/stg_stripe__payments.yml new file mode 100644 index 0000000..5769317 --- /dev/null +++ b/models/staging/stripe/stg_stripe__payments.yml @@ -0,0 +1,4 @@ +models: + - name: stg_stripe__payments + access: public + description: description \ No newline at end of file diff --git a/packages.yml b/packages.yml index ebd4071..9464313 100644 --- a/packages.yml +++ b/packages.yml @@ -4,10 +4,10 @@ packages: - package: dbt-labs/dbt_utils version: 1.1.0 - package: dbt-labs/audit_helper - version: 0.9.0 + version: 0.12.0 - package: brooklyn-data/dbt_artifacts version: 2.6.2 - package: dbt-labs/dbt_project_evaluator version: 0.6.0 - package: calogica/dbt_expectations - version: 0.8.5 + version: 0.8.5 \ No newline at end of file diff --git a/snapshots/snapshot_int_line_items.sql b/snapshots/snapshot_int_line_items.sql index 90bc550..906b654 100644 --- a/snapshots/snapshot_int_line_items.sql +++ b/snapshots/snapshot_int_line_items.sql @@ -10,13 +10,14 @@ {{ config( target_database='analytics', - target_schema=var('example_target_snapshot_schema'), + target_schema='dbt_bhipple', unique_key='order_item_id', strategy='check', check_cols=['gross_item_sales_amount', 'net_item_sales_amount'], ) }} -select * from {{ ref('int_line_items_amounts_calculated') }} +select row_number() over(order by order_item_id) as row_id, * from {{ ref('int_line_items_amounts_calculated') }} +order by row_id +{% endsnapshot %} -{% endsnapshot %} \ No newline at end of file