Skip to content

Commit

Permalink
[sql] Using read_sql_query instead of read_sql (apache#4853)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley committed Apr 20, 2018
1 parent c92b56e commit 8934717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/models/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def get_quoter(self):
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:
Expand Down

0 comments on commit 8934717

Please sign in to comment.