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: normalize column names for Redshift (#5337)
Date Wed, 04 Jul 2018 21:30:41 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 059b64d  normalize column names for Redshift (#5337)
059b64d is described below

commit 059b64dad7be843b9ee94878b73ce831a763f3ac
Author: Minh Mai <minh.v.mai@gmail.com>
AuthorDate: Wed Jul 4 17:30:37 2018 -0400

    normalize column names for Redshift (#5337)
---
 superset/db_engine_specs.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py
index 4181c49..92cbcb2 100644
--- a/superset/db_engine_specs.py
+++ b/superset/db_engine_specs.py
@@ -424,6 +424,10 @@ class VerticaEngineSpec(PostgresBaseEngineSpec):
 class RedshiftEngineSpec(PostgresBaseEngineSpec):
     engine = 'redshift'
 
+    @staticmethod
+    def normalize_column_name(column_name):
+        return column_name.lower()
+
 
 class OracleEngineSpec(PostgresBaseEngineSpec):
     engine = 'oracle'


Mime
View raw message