Browse Source

HUE-6746 [autocomplete] Add USER and TIMESTAMP to non-reserved keywords list

Even though the Hive documentation lists them as reserved it still accepts them on execution, the parser generates fine with them marked as non-reserved.
Johan Ahlen 8 years ago
parent
commit
2820a04f88

+ 1 - 0
desktop/core/src/desktop/static/desktop/js/autocomplete/jison/sql.jisonlex

@@ -59,6 +59,7 @@
 <hive>'REVOKE'                             { return '<hive>REVOKE'; }
 <hive>'ROLLUP'                             { return '<hive>ROLLUP'; }
 <hive>'TABLE'                              { return '<hive>TABLE'; }
+<hive>'TIMESTAMP'                          { return '<hive>TIMESTAMP'; }
 <hive>'USER'                               { return '<hive>USER'; }
 <hive>'USING'                              { return '<hive>USING'; }
 

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


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


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


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