mirror of
https://github.com/dbt-labs/dbt-project-evaluator.git
synced 2025-12-18 02:11:27 +00:00
fix additional deprecation warnings
This commit is contained in:
@@ -16,6 +16,9 @@ clean-targets: # directories to be removed by `dbt clean`
|
||||
- "target"
|
||||
- "dbt_packages"
|
||||
|
||||
flags:
|
||||
require_nested_cumulative_type_params: True
|
||||
require_yaml_configuration_for_mf_time_spines: True
|
||||
|
||||
dispatch:
|
||||
- macro_namespace: dbt
|
||||
|
||||
@@ -28,13 +28,17 @@ dispatch:
|
||||
- macro_namespace: dbt
|
||||
search_order: ['dbt_project_evaluator', 'dbt']
|
||||
|
||||
flags:
|
||||
require_nested_cumulative_type_params: True
|
||||
require_yaml_configuration_for_mf_time_spines: True
|
||||
|
||||
models:
|
||||
dbt_project_evaluator_integration_tests:
|
||||
# materialize as ephemeral to prevent the fake models from executing, but keep them enabled
|
||||
+materialized: ephemeral
|
||||
dbt_project_evaluator:
|
||||
marts:
|
||||
data_tests:
|
||||
tests:
|
||||
fct_test_coverage:
|
||||
# materialize as a table to ensure SQL query runs successfully
|
||||
+materialized: table
|
||||
|
||||
@@ -43,6 +43,7 @@ metrics:
|
||||
type_params:
|
||||
# Specify the measure you are creating a proxy for.
|
||||
measure: total_count
|
||||
window: 30 days
|
||||
cumulative_type_params:
|
||||
window: 30 days
|
||||
filter: |
|
||||
{{ Dimension('dim__id') }} > 0
|
||||
@@ -1,8 +1,8 @@
|
||||
models:
|
||||
- name: metricflow_time_spine
|
||||
description: default time spine for metricflow
|
||||
- name: all_days
|
||||
description: A time spine with one row per day, ranging from 2020-01-01 to 2039-12-31.
|
||||
time_spine:
|
||||
standard_granularity_column: date_day # Column for the standard grain of your table
|
||||
columns:
|
||||
- name: date_day
|
||||
data_tests:
|
||||
- unique
|
||||
- not_null
|
||||
granularity: day
|
||||
@@ -1,4 +1,4 @@
|
||||
-- metricflow_time_spine.sql
|
||||
-- metricflow time spine
|
||||
{% set date_expr = "current_date()" if target.type in ["duckdb"] else dbt.current_timestamp() %}
|
||||
{{
|
||||
config(
|
||||
@@ -30,6 +30,10 @@ dispatch:
|
||||
|
||||
on-run-end: "{{ dbt_project_evaluator.print_dbt_project_evaluator_issues() }}"
|
||||
|
||||
flags:
|
||||
require_nested_cumulative_type_params: True
|
||||
require_yaml_configuration_for_mf_time_spines: True
|
||||
|
||||
models:
|
||||
dbt_project_evaluator_integration_tests_2:
|
||||
# materialize as ephemeral to prevent the fake models from executing, but keep them enabled
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
wrap_string_with_quotes(node.type_params.numerator | tojson),
|
||||
wrap_string_with_quotes(node.type_params.denominator | tojson),
|
||||
wrap_string_with_quotes(node.type_params.expr),
|
||||
wrap_string_with_quotes(node.type_params.window | tojson),
|
||||
wrap_string_with_quotes(node.type_params.grain_to_date),
|
||||
wrap_string_with_quotes(node.type_params.cumulative_type_params.window | tojson),
|
||||
wrap_string_with_quotes(node.type_params.cumulative_type_params.grain_to_date),
|
||||
wrap_string_with_quotes(node.meta | tojson)
|
||||
]
|
||||
%}
|
||||
|
||||
Reference in New Issue
Block a user