Quellcode durchsuchen

HUE-7283 [editor] Fix issue where analytic functions aren't found in the context popover

Johan Ahlen vor 8 Jahren
Ursprung
Commit
2df4241cc4
1 geänderte Dateien mit 12 neuen und 11 gelöschten Zeilen
  1. 12 11
      desktop/core/src/desktop/static/desktop/js/sqlFunctions.js

+ 12 - 11
desktop/core/src/desktop/static/desktop/js/sqlFunctions.js

@@ -3481,17 +3481,18 @@ var SqlFunctions = (function () {
 
   var findFunction = function (dialect, functionName) {
     return BIT_FUNCTIONS[dialect][functionName] ||
-        COLLECTION_FUNCTIONS[dialect][functionName] ||
-        CONDITIONAL_FUNCTIONS[dialect][functionName] ||
-        COMPLEX_TYPE_CONSTRUCTS[dialect][functionName] ||
-        DATE_FUNCTIONS[dialect][functionName] ||
-        MATHEMATICAL_FUNCTIONS[dialect][functionName] ||
-        TYPE_CONVERSION_FUNCTIONS[dialect][functionName] ||
-        STRING_FUNCTIONS[dialect][functionName] ||
-        DATA_MASKING_FUNCTIONS[dialect][functionName] ||
-        MISC_FUNCTIONS[dialect][functionName] ||
-        TABLE_GENERATING_FUNCTIONS[dialect][functionName] ||
-        AGGREGATE_FUNCTIONS[dialect][functionName];
+      COLLECTION_FUNCTIONS[dialect][functionName] ||
+      CONDITIONAL_FUNCTIONS[dialect][functionName] ||
+      COMPLEX_TYPE_CONSTRUCTS[dialect][functionName] ||
+      DATE_FUNCTIONS[dialect][functionName] ||
+      MATHEMATICAL_FUNCTIONS[dialect][functionName] ||
+      TYPE_CONVERSION_FUNCTIONS[dialect][functionName] ||
+      STRING_FUNCTIONS[dialect][functionName] ||
+      DATA_MASKING_FUNCTIONS[dialect][functionName] ||
+      MISC_FUNCTIONS[dialect][functionName] ||
+      TABLE_GENERATING_FUNCTIONS[dialect][functionName] ||
+      AGGREGATE_FUNCTIONS[dialect][functionName] ||
+      ANALYTIC_FUNCTIONS[dialect][functionName];
   };
 
   var getArgumentTypes = function (dialect, functionName, argumentPosition) {