[tb] Fix reload button for the table listing
@@ -92,9 +92,20 @@ class MetastoreDatabase {
}
reload() {
+ if (this.loading()) {
+ return;
+ }
// Clear will publish when done
- this.catalogEntry.clearCache({
+ this.catalogEntry
+ .clearCache({
invalidate: this.catalogEntry.getSourceType() === 'impala' ? 'invalidate' : 'cache'
+ })
+ .then(() => {
+ this.load(
+ () => {},
+ this.metastoreViewModel.optimizerEnabled,
+ this.metastoreViewModel.navigatorEnabled
+ );
});
}
