superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: [bugfix] remove quotes from Postgres time grains (#3913)
Date Tue, 21 Nov 2017 19:24:19 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 2d37dec  [bugfix] remove quotes from Postgres time grains (#3913)
2d37dec is described below

commit 2d37dec5ffa9fc9b1662b8eda901765f7305c365
Author: Maxime Beauchemin <maximebeauchemin@gmail.com>
AuthorDate: Tue Nov 21 11:24:17 2017 -0800

    [bugfix] remove quotes from Postgres time grains (#3913)
---
 superset/db_engine_specs.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py
index 37464e4..ba20cce 100644
--- a/superset/db_engine_specs.py
+++ b/superset/db_engine_specs.py
@@ -216,14 +216,14 @@ class PostgresEngineSpec(BaseEngineSpec):
 
     time_grains = (
         Grain('Time Column', _('Time Column'), '{col}'),
-        Grain('second', _('second'), "DATE_TRUNC('second', '{col}')"),
-        Grain('minute', _('minute'), "DATE_TRUNC('minute', '{col}')"),
-        Grain('hour', _('hour'), "DATE_TRUNC('hour', '{col}')"),
-        Grain('day', _('day'), "DATE_TRUNC('day', '{col}')"),
-        Grain('week', _('week'), "DATE_TRUNC('week', '{col}')"),
-        Grain('month', _('month'), "DATE_TRUNC('month', '{col}')"),
-        Grain('quarter', _('quarter'), "DATE_TRUNC('quarter', '{col}')"),
-        Grain('year', _('year'), "DATE_TRUNC('year', '{col}')"),
+        Grain('second', _('second'), "DATE_TRUNC('second', {col})"),
+        Grain('minute', _('minute'), "DATE_TRUNC('minute', {col})"),
+        Grain('hour', _('hour'), "DATE_TRUNC('hour', {col})"),
+        Grain('day', _('day'), "DATE_TRUNC('day', {col})"),
+        Grain('week', _('week'), "DATE_TRUNC('week', {col})"),
+        Grain('month', _('month'), "DATE_TRUNC('month', {col})"),
+        Grain('quarter', _('quarter'), "DATE_TRUNC('quarter', {col})"),
+        Grain('year', _('year'), "DATE_TRUNC('year', {col})"),
     )
 
     @classmethod

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message