瀏覽代碼

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

Johan Ahlen 8 年之前
父節點
當前提交
502fefa3ce
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      apps/metastore/src/metastore/static/metastore/js/metastore.model.js

+ 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,