Browse Source

[flink] adding Flink to right assist Function panel (#1751)

* [flink] adding Flink to right assist Function panel #GH-1629
Akhil S Naik 4 years ago
parent
commit
dd3291fca3

+ 2 - 1
desktop/core/src/desktop/js/ko/components/assist/ko.rightAssistPanel.js

@@ -123,7 +123,8 @@ class RightAssistPanel {
         this.connector() &&
         (this.connector().dialect === 'hive' ||
           this.connector().dialect === 'impala' ||
-          this.connector().dialect === 'pig')
+          this.connector().dialect === 'pig' ||
+          this.connector().dialect === 'flink')
     );
     this.langRefTabAvailable = ko.pureComputed(
       () =>

+ 2 - 2
desktop/core/src/desktop/js/sql/reference/flink/udfReference.ts

@@ -252,7 +252,7 @@ const DATE_FUNCTIONS: UdfCategoryFunctions = {
   }
 };
 
-const AUXILIARY_FUNCTIONS: UdfCategoryFunctions = {
+const GROUP_WINDOW_FUNCTIONS: UdfCategoryFunctions = {
   hop: {
     name: 'hop',
     returnTypes: ['T'],
@@ -476,6 +476,6 @@ export const UDF_CATEGORIES: UdfCategory[] = [
   { name: I18n('Aggregate'), isAggregate: true, functions: AGGREGATE_FUNCTIONS },
   { name: I18n('Analytic'), isAnalytic: true, functions: ANALYTIC_FUNCTIONS },
   { name: I18n('Date'), functions: DATE_FUNCTIONS },
-  { name: I18n('Misc'), functions: AUXILIARY_FUNCTIONS },
+  { name: I18n('Group Window Functions'), functions: GROUP_WINDOW_FUNCTIONS },
   { name: I18n('String'), functions: STRING_FUNCTIONS }
 ];