Sfoglia il codice sorgente

HUE-9264 [parser] Add impala missing string function (#1103)

Xiao Kang 5 anni fa
parent
commit
471b0079f6

+ 3 - 0
desktop/core/src/desktop/js/parse/jison/sql/impala/sql.jisonlex

@@ -422,9 +422,12 @@ CAST\s*\(                                  { yy.lexer.unput('('); yytext = 'cast
 COUNT\s*\(                                 { yy.lexer.unput('('); yytext = 'count'; parser.addFunctionLocation(yylloc, yytext); return 'COUNT'; }
 EXTRACT\s*\(                               { yy.lexer.unput('('); yytext = 'extract'; parser.addFunctionLocation(yylloc, yytext); return 'EXTRACT'; }
 GROUP_CONCAT\s*\(                          { yy.lexer.unput('('); yytext = 'group_concat'; parser.addFunctionLocation(yylloc, yytext); return 'GROUP_CONCAT'; }
+LEFT\s*\(                                  { yy.lexer.unput('('); yytext = 'left'; parser.addFunctionLocation(yylloc, yytext); return 'LEFT'; }
 MAX\s*\(                                   { yy.lexer.unput('('); yytext = 'max'; parser.addFunctionLocation(yylloc, yytext); return 'MAX'; }
 MIN\s*\(                                   { yy.lexer.unput('('); yytext = 'min'; parser.addFunctionLocation(yylloc, yytext); return 'MIN'; }
 NDV\s*\(                                   { yy.lexer.unput('('); yytext = 'ndv'; parser.addFunctionLocation(yylloc, yytext); return 'NDV'; }
+REPLACE\s*\(                               { yy.lexer.unput('('); yytext = 'replace'; parser.addFunctionLocation(yylloc, yytext); return 'REPLACE'; }
+RIGHT\s*\(                               { yy.lexer.unput('('); yytext = 'right'; parser.addFunctionLocation(yylloc, yytext); return 'RIGHT'; }
 STDDEV\s*\(                                { yy.lexer.unput('('); yytext = 'stddev'; parser.addFunctionLocation(yylloc, yytext); return 'STDDEV'; }
 STDDEV_POP\s*\(                            { yy.lexer.unput('('); yytext = 'stddev_pop'; parser.addFunctionLocation(yylloc, yytext); return 'STDDEV_POP'; }
 STDDEV_SAMP\s*\(                           { yy.lexer.unput('('); yytext = 'stddev_samp'; parser.addFunctionLocation(yylloc, yytext); return 'STDDEV_SAMP'; }

File diff suppressed because it is too large
+ 80 - 74
desktop/core/src/desktop/js/parse/sql/impala/impalaAutocompleteParser.js


File diff suppressed because it is too large
+ 80 - 74
desktop/core/src/desktop/js/parse/sql/impala/impalaSyntaxParser.js


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