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 1756c27 commit d3b91bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caravel/models.py
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 d3b91bf

Please sign in to comment.