فهرست منبع

HUE-6389 [autocomplete] Ignore subqueries when sending tables to the metadata API

Johan Ahlen 8 سال پیش
والد
کامیت
46c68d4
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      desktop/core/src/desktop/static/desktop/js/apiHelper.js

+ 3 - 0
desktop/core/src/desktop/static/desktop/js/apiHelper.js

@@ -1527,6 +1527,9 @@ var ApiHelper = (function () {
     var tables = [];
     var tableIndex = {};
     options.tables.forEach(function (table) {
+      if (table.subQuery || !table.identifierChain) {
+        return;
+      }
       var clonedIdentifierChain = table.identifierChain.concat();
 
       var databasePrefix;