From decb3132d696a88aeb79d4f633b92208b133416c Mon Sep 17 00:00:00 2001 From: Devon Fulcher <24593113+DevonFulcher@users.noreply.github.com> Date: Tue, 22 Oct 2024 16:57:31 -0500 Subject: [PATCH] Added comment for day timespine check --- core/dbt/contracts/graph/semantic_manifest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/dbt/contracts/graph/semantic_manifest.py b/core/dbt/contracts/graph/semantic_manifest.py index 4fbdae2bd6a..82db87c5a16 100644 --- a/core/dbt/contracts/graph/semantic_manifest.py +++ b/core/dbt/contracts/graph/semantic_manifest.py @@ -62,6 +62,7 @@ def validate(self) -> bool: validation_results = validator.validate_semantic_manifest(semantic_manifest) new_time_spines = semantic_manifest.project_configuration.time_spines old_time_spines = semantic_manifest.project_configuration.time_spine_table_configurations + # If the new time spine contains a day grain then it is functionally equivalent to the legacy time spine. new_time_spines_contain_day = any( c for c in new_time_spines if c.primary_column.time_granularity == TimeGranularity.DAY )