mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
feat(SIP-95): permissions for catalogs (#28317)
This commit is contained in:
@@ -126,7 +126,11 @@ class SqlResultExportCommand(BaseCommand):
|
||||
}:
|
||||
# remove extra row from `increased_limit`
|
||||
limit -= 1
|
||||
df = self._query.database.get_df(sql, self._query.schema)[:limit]
|
||||
df = self._query.database.get_df(
|
||||
sql,
|
||||
self._query.catalog,
|
||||
self._query.schema,
|
||||
)[:limit]
|
||||
|
||||
csv_data = csv.df_to_escaped_csv(df, index=False, **config["CSV_EXPORT"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user