mirror of https://github.com/apache/superset.git
Enable Time Grain Option for Redshift
This commit is contained in:
parent
d122b37f5d
commit
8556b098f9
|
@ -346,6 +346,7 @@ class Database(Model, AuditMixinNullable):
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue