浏览代码

HUE-6522 [editor] Fix context popover for tables in the assistant panel

Johan Ahlen 8 年之前
父节点
当前提交
183ab16

+ 1 - 0
apps/metastore/src/metastore/static/metastore/js/metastore.model.js

@@ -357,6 +357,7 @@ var MetastoreTable = (function () {
    * @param {string} options.name
    * @param {string} options.type
    * @param {string} options.comment
+   * @param {string} options.sourceType
    * @constructor
    */
   function MetastoreTable(options) {

+ 1 - 0
desktop/core/src/desktop/templates/assist.mako

@@ -1905,6 +1905,7 @@ from notebook.conf import get_ordered_interpreters
                   name: value.identifierChain.length === 2 ? value.identifierChain[0].name : activeLocations.defaultDatabase
                 },
                 type: 'table',
+                sourceType: activeLocations.type,
                 name: value.name
               });
             }));