diff --git a/caravel/models.py b/caravel/models.py index 4abc2a01426e9..dda42c326ff3c 100644 --- a/caravel/models.py +++ b/caravel/models.py @@ -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})"),