superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnbod...@apache.org
Subject [incubator-superset] branch master updated: [sql] Using read_sql_query instead of read_sql (#4853)
Date Fri, 20 Apr 2018 21:36:23 GMT
This is an automated email from the ASF dual-hosted git repository.

johnbodley 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 8934717  [sql] Using read_sql_query instead of read_sql (#4853)
8934717 is described below

commit 89347172d22688d110e24df3cfc35efe77dce45c
Author: John Bodley <4567245+john-bodley@users.noreply.github.com>
AuthorDate: Fri Apr 20 14:36:20 2018 -0700

    [sql] Using read_sql_query instead of read_sql (#4853)
---
 superset/models/core.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/models/core.py b/superset/models/core.py
index 05f781f..576f561 100644
--- a/superset/models/core.py
+++ b/superset/models/core.py
@@ -693,7 +693,7 @@ class Database(Model, AuditMixinNullable, ImportMixin):
     def get_df(self, sql, schema):
         sql = sql.strip().strip(';')
         eng = self.get_sqla_engine(schema=schema)
-        df = pd.read_sql(sql, eng)
+        df = pd.read_sql_query(sql, eng)
 
         def needs_conversion(df_series):
             if df_series.empty:

-- 
To stop receiving notification emails like this one, please contact
johnbodley@apache.org.

Mime
View raw message