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/17 17:34:16 UTC
[incubator-superset] 01/02: Revert "Escape columns names for time
grains - postgres (#3736)"
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to tag 0.20.6
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit 4fec8c55ae11f9dc2fa0b8bc7f4c3b06f19d4075
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Tue Nov 14 21:25:41 2017 -0800
Revert "Escape columns names for time grains - postgres (#3736)"
This reverts commit 814b70ffd87750c8416d0f541504d8a854e82ec1.
---
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 c5363af..c9ed303 100644
--- a/superset/db_engine_specs.py
+++ b/superset/db_engine_specs.py
@@ -214,14 +214,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>.