You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2017/11/21 19:24:19 UTC
[incubator-superset] branch master updated: [bugfix] remove quotes
from Postgres time grains (#3913)
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 <ma...@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" <co...@superset.apache.org>'].