Skip to content

Commit

Permalink
Added comment for day timespine check
Browse files Browse the repository at this point in the history
  • Loading branch information
DevonFulcher committed Oct 22, 2024
1 parent dd86280 commit decb313
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/dbt/contracts/graph/semantic_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit decb313

Please sign in to comment.