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: [issue] Resolving issue 2530 (#3865)
Date Wed, 15 Nov 2017 05:13:03 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 2e25fc4  [issue] Resolving issue 2530 (#3865)
2e25fc4 is described below

commit 2e25fc41615da31902b319c9cf0ec29a366c1169
Author: John Bodley <4567245+john-bodley@users.noreply.github.com>
AuthorDate: Tue Nov 14 21:13:00 2017 -0800

    [issue] Resolving issue 2530 (#3865)
---
 superset/connectors/sqla/models.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset/connectors/sqla/models.py b/superset/connectors/sqla/models.py
index 5c2be6f..5990622 100644
--- a/superset/connectors/sqla/models.py
+++ b/superset/connectors/sqla/models.py
@@ -6,6 +6,7 @@ from flask_appbuilder import Model
 from flask_babel import lazy_gettext as _
 import pandas as pd
 from past.builtins import basestring
+import six
 import sqlalchemy as sa
 from sqlalchemy import (
     and_, asc, Boolean, Column, DateTime, desc, ForeignKey, Integer, or_,
@@ -319,7 +320,7 @@ class SqlaTable(Model, BaseDatasource):
     def get_query_str(self, query_obj):
         engine = self.database.get_sqla_engine()
         qry = self.get_sqla_query(**query_obj)
-        sql = str(
+        sql = six.text_type(
             qry.compile(
                 engine,
                 compile_kwargs={'literal_binds': True},

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

Mime
View raw message