Skip to content
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

Closed
rajivchodisetti opened this issue Apr 5, 2016 · 0 comments
Closed

Enable Time Grain Option for Redshift #273

rajivchodisetti opened this issue Apr 5, 2016 · 0 comments

Comments

@rajivchodisetti
Copy link

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})"),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants