Browse Source

HUE-4792 [editor] Add autocompleter support for Hive array, binary and map UDFs

Johan Ahlen 9 years ago
parent
commit
6b9f823

+ 9 - 2
desktop/core/src/desktop/static/desktop/js/autocomplete/jison/sql_main.jison

@@ -2718,7 +2718,7 @@ ArbitraryFunction
        $$ = { function: $1, types: findReturnTypes($1) }
      }
    }
- | 'IF' ArbitraryFunctionRightPart
+ | ArbitraryFunctionName ArbitraryFunctionRightPart
    {
      addFunctionLocation(@1, $1);
      if ($2.expression) {
@@ -2738,7 +2738,7 @@ ArbitraryFunction_EDIT
      }
      $$ = { types: findReturnTypes($1) };
    }
- | 'IF' ArbitraryFunctionRightPart_EDIT
+ | ArbitraryFunctionName ArbitraryFunctionRightPart_EDIT
    {
      addFunctionLocation(@1, $1);
      if ($2.position) {
@@ -2748,6 +2748,13 @@ ArbitraryFunction_EDIT
    }
  ;
 
+ArbitraryFunctionName
+ : 'IF'
+ | '<hive>ARRAY'
+ | '<hive>BINARY'
+ | '<hive>MAP'
+ ;
+
 ArbitraryFunctionRightPart
  : '(' ')'
  | '(' ValueExpressionList ')'  -> { expression: $2 }

File diff suppressed because it is too large
+ 0 - 0
desktop/core/src/desktop/static/desktop/js/autocomplete/sql.js


Some files were not shown because too many files changed in this diff