diff --git a/dbt_semantic_interfaces/type_enums/date_part.py b/dbt_semantic_interfaces/type_enums/date_part.py index e02e494f..18b2a401 100644 --- a/dbt_semantic_interfaces/type_enums/date_part.py +++ b/dbt_semantic_interfaces/type_enums/date_part.py @@ -40,4 +40,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()] diff --git a/pyproject.toml b/pyproject.toml index 351192f8..677c3ec6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "dbt-semantic-interfaces" -version = "0.4.1" +version = "0.4.2.dev0" description = 'The shared semantic layer definitions that dbt-core and MetricFlow use' readme = "README.md" requires-python = ">=3.8"