Browse Source

HUE-6322 [metadata] Support multiple tables in filter suggestions

Johan Ahlen 8 years ago
parent
commit
a00a88d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      desktop/core/src/desktop/static/desktop/js/sqlAutocompleter3.js

+ 2 - 0
desktop/core/src/desktop/static/desktop/js/sqlAutocompleter3.js

@@ -1569,6 +1569,8 @@ var AutocompleteResults = (function () {
         path = path.substring(tablePath.length + 1);
         if (tables[i].alias) {
           path = tables[i].alias + '.' + path;
+        } else if (tables.length > 0) {
+          path = tables[i].identifierChain[tables[i].identifierChain.length - 1].name + '.' + path;
         }
         break;
       }