Skip to content

Commit

Permalink
Pass schema to the select star query. (apache#1714)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkyryliuk authored Dec 1, 2016
1 parent e822d5a commit 25acb78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superset/sql_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ def handle_error(msg):
query.rows = cdf.size
if query.select_as_cta:
query.select_sql = '{}'.format(database.select_star(
query.tmp_table_name, limit=query.limit))
query.tmp_table_name,
limit=query.limit,
schema=database.force_ctas_schema
))
query.end_time = utils.now_as_float()
session.flush()

Expand Down

0 comments on commit 25acb78

Please sign in to comment.