mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
[sql] Using read_sql_query instead of read_sql (#4853)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user