Remove the "delete schema" button from the table UI
I've noticed Delete Schema never works from the table UI since you can't delete the schema without deleting the table first. And if you delete the table, you get redirected back to the tables page. So there's no way to make use of this button.
I can remove it, but I want to make sure I'm not missing something.
This might be a legacy behavior when we allow table to use schema of a different name. After removing a table, do we remove the schema all together, or user needs to explicitly delete it?
I think it didn't work even before that. It would say the schema is in use. Deleting the table in the UI doesn't delete the schema. And that's a common source of confusion for our users when iterating.
I was thinking the confirmation modal you get when it asks "are you sure you want to delete" could get extended to add a few checkbox. The first 2 that I think make sense are:
-
delete the schema- that would just do both deletions at once and route you back to the tables page -
delete immediately- the 7d retention default can be really annoying. especially for large tables. And there's no async delete, so you just have to close the tab and move on.
I like this idea!
removed in https://github.com/apache/pinot/pull/14736