Skip to content

Commit

Permalink
add additional postgres and redshift time grains (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
itajaja authored and mistercrunch committed May 3, 2016
1 parent 88c9516 commit 9a08c45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions caravel/models.py
Expand Up @@ -396,6 +396,8 @@ def grains(self):
),
'postgresql': (
Grain("Time Column", "{col}"),
Grain("second", "DATE_TRUNC('second', {col})"),
Grain("minute", "DATE_TRUNC('minute', {col})"),
Grain("hour", "DATE_TRUNC('hour', {col})"),
Grain("day", "DATE_TRUNC('day', {col})"),
Grain("week", "DATE_TRUNC('week', {col})"),
Expand Down

0 comments on commit 9a08c45

Please sign in to comment.