Skip to content

Commit

Permalink
Bug fix: compatible granularities for date_part (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb authored Nov 20, 2023
1 parent b4c0a82 commit 30a3f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt_semantic_interfaces/type_enums/date_part.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()]

0 comments on commit 30a3f63

Please sign in to comment.