Skip to content

Commit

Permalink
Enable Time Grain Option for Redshift
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 7, 2016
1 parent d122b37 commit 8556b09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caravel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ def grains(self):
Grain("year", "DATE_TRUNC('year', {col})"),
),
}
db_time_grains['redshift'] = db_time_grains['postgresql']
for db_type, grains in db_time_grains.items():
if self.sqlalchemy_uri.startswith(db_type):
return grains
Expand Down

0 comments on commit 8556b09

Please sign in to comment.