Explorar o código

HUE-7739 [metastore] Fix column context popover in the table browser

Johan Ahlen %!s(int64=8) %!d(string=hai) anos
pai
achega
502fefa3ce

+ 2 - 2
apps/metastore/src/metastore/static/metastore/js/metastore.model.js

@@ -731,7 +731,7 @@ var MetastoreColumn = (function () {
       }, function (data) {
         if (data.status == 0) {
           huePubSub.publish('assist.clear.db.cache', {
-            sourceType: self.sourceType,
+            sourceType: self.table.sourceType,
             databaseName: self.table.database.name,
             tableName: self.table.name
           });
@@ -753,7 +753,7 @@ var MetastoreColumn = (function () {
         identifierChain: [{ name: entry.table.name }, { name: entry.name() }]
       },
       orientation: 'right',
-      sourceType: self.sourceType,
+      sourceType: entry.table.sourceType,
       defaultDatabase: entry.table.database.name,
       source: {
         element: event.target,