fix(sql-lab): SQL Lab commit connection even if no CTA query is made (#19808)

Co-authored-by: Santiago <s@inkremental.co>
This commit is contained in:
Santiago Cárdenas
2023-06-08 00:35:23 +02:00
committed by GitHub
parent 46c2479db2
commit e13b80aff1

View File

@@ -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