浏览代码

HUE-8577 [autocomplete] Add support for the Impala REFRESH AUTHORIZATION statement

Johan Ahlen 6 年之前
父节点
当前提交
81cb646

+ 2 - 1
desktop/core/src/desktop/static/desktop/js/autocomplete/jison/sql_analyze.jison

@@ -146,6 +146,7 @@ RefreshStatement
    {
      parser.addDatabaseLocation(@3, [{ name: $3 }]);
    }
+ | '<impala>REFRESH' '<impala>AUTHORIZATION'
  ;
 
 RefreshStatement_EDIT
@@ -153,7 +154,7 @@ RefreshStatement_EDIT
    {
      parser.suggestTables();
      parser.suggestDatabases({ appendDot: true });
-     parser.suggestKeywords(['FUNCTIONS']);
+     parser.suggestKeywords(['AUTHORIZATION', 'FUNCTIONS']);
    }
  | '<impala>REFRESH' SchemaQualifiedTableIdentifier_EDIT OptionalPartitionSpec
  | '<impala>REFRESH' SchemaQualifiedTableIdentifier OptionalPartitionSpec 'CURSOR'

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/autocomplete/spec/sqlSpecAnalyze.js

@@ -708,7 +708,7 @@
             lowerCase: false,
             suggestTables: {},
             suggestDatabases: { appendDot: true },
-            suggestKeywords: ['FUNCTIONS']
+            suggestKeywords: ['AUTHORIZATION', 'FUNCTIONS']
           }
         });
       });

文件差异内容过多而无法显示
+ 0 - 0
desktop/core/src/desktop/static/desktop/js/autocomplete/sqlAutocompleteParser.js


文件差异内容过多而无法显示
+ 0 - 0
desktop/core/src/desktop/static/desktop/js/autocomplete/sqlSyntaxParser.js


部分文件因为文件数量过多而无法显示