You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DETAIL: Key (id)=(3101) is still referenced from table "queries".
[SQL: 'DELETE FROM query_results WHERE %(param_1)s = query_results.data_source_id'] [parameters: {'param_1': 8}] (Background on this error at: http://sqlalche.me/e/gkpj)
[2019-08-12 14:50:00,046][PID:14][ERROR][redash] Exception on /api/data_sources/8 [DELETE]```
Issue Summary
When you have the following situation:
You will not be able to delete data source A, because it will fail to delete the query results using it.
Steps to Reproduce
The way the above can happen is if:
It's an edge case, but happened already twice for people who reported it.
The correct solution here is to update the
latest_query_data_id
reference to get nullified if the query result is deleted.Technical details:
The text was updated successfully, but these errors were encountered: