-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Time Grain Option for Redshift #273
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI ,
Can you please enable time grain option for Redshift .. Just add the below lines under models.py file and should work as I have tested it on my local
'redshift': (
Grain('Time Column','{col}'),
Grain("hour", "DATE_TRUNC('hour', {col})"),
Grain("day", "DATE_TRUNC('day', {col})"),
Grain('week', "date_trunc('week', {col})"),
Grain('month',"date_trunc('month', {col})"),
Grain("year", "DATE_TRUNC('year', {col})"),
)
The text was updated successfully, but these errors were encountered: