Skip to content

Commit

Permalink
fix(sql-lab): SQL Lab commit connection even if no CTA query is made (#…
Browse files Browse the repository at this point in the history
…19808)

Co-authored-by: Santiago <s@inkremental.co>
  • Loading branch information
snt1017 and Santiago authored Jun 7, 2023
1 parent 46c2479 commit e13b80a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/sql_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ def execute_sql_statements(
)
return payload
# Commit the connection so CTA queries will create the table.
conn.commit()
if apply_ctas:
conn.commit()

# Success, updating the query entry in database
query.rows = result_set.size
Expand Down

0 comments on commit e13b80a

Please sign in to comment.