Bug description

If a saved query can't be parsed by SQL Glot to extract the table names, the whole listing page breaks with the following error:

An error occurred while fetching Saved queries: list index out of range

We should make it more resilient.

Screenshots/recordings

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
  • [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
  • [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Comment From: dharanchit

Can i pick this up?