diff --git a/dbt_semantic_interfaces/type_enums/date_part.py b/dbt_semantic_interfaces/type_enums/date_part.py index 2c269fe6..5e474d5d 100644 --- a/dbt_semantic_interfaces/type_enums/date_part.py +++ b/dbt_semantic_interfaces/type_enums/date_part.py @@ -54,4 +54,4 @@ def to_int(self) -> int: @property def compatible_granularities(self) -> List[TimeGranularity]: """Granularities that can be queried with this date part.""" - return [granularity for granularity in TimeGranularity if granularity.to_int() >= self.to_int()] + return [granularity for granularity in TimeGranularity if granularity.to_int() <= self.to_int()]