فهرست منبع

HUE-6958 [autocomplete] Improve Hive SHOW TBLPROPERTIES

Johan Ahlen 8 سال پیش
والد
کامیت
609968601d

+ 4 - 0
desktop/core/src/desktop/static/desktop/js/autocomplete/jison/sql_show.jison

@@ -615,6 +615,10 @@ ShowTblPropertiesStatement
    {
      parser.addTablePrimary($3);
    }
+ | AnyShow '<hive>TBLPROPERTIES' RegularOrBackTickedSchemaQualifiedName '(' QuotedValue ')'
+   {
+     parser.addTablePrimary($3);
+   }
  ;
 
 ShowTblPropertiesStatement_EDIT

+ 13 - 0
desktop/core/src/desktop/static/desktop/js/autocomplete/spec/sqlSpecShow.js

@@ -1050,6 +1050,19 @@
         });
       });
 
+      it('should handle "SHOW TBLPROPERTIES boo("foo"); |"', function() {
+        assertAutoComplete({
+          beforeCursor: 'SHOW TBLPROPERTIES boo("foo"); ',
+          afterCursor: '',
+          dialect: 'hive',
+          noErrors: true,
+          containsKeywords: ['SELECT'],
+          expectedResult: {
+            lowerCase: false
+          }
+        });
+      });
+
       it('should suggest tables for "SHOW TBLPROPERTIES |"', function() {
         assertAutoComplete({
           beforeCursor: 'SHOW TBLPROPERTIES ',

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
desktop/core/src/desktop/static/desktop/js/autocomplete/sqlAutocompleteParser.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
desktop/core/src/desktop/static/desktop/js/autocomplete/sqlSyntaxParser.js


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است