feat(flink): merge parser and lexer in order to java test
This commit is contained in:
parent
d7d32a3824
commit
0735269f4e
@ -1,355 +0,0 @@
|
||||
lexer grammar FlinkSqlLexer;
|
||||
|
||||
channels { MYSQLCOMMENT }
|
||||
|
||||
// SKIP
|
||||
|
||||
SPACE: [ \t\r\n]+ -> channel(HIDDEN);
|
||||
SPEC_MYSQL_COMMENT: '/*!' .+? '*/' -> channel(MYSQLCOMMENT);
|
||||
COMMENT_INPUT: '/*' .*? '*/' -> channel(HIDDEN);
|
||||
LINE_COMMENT: (
|
||||
('-- ' | '#') ~[\r\n]* ('\r'? '\n' | EOF)
|
||||
| '--' ('\r'? '\n' | EOF)
|
||||
) -> channel(HIDDEN);
|
||||
|
||||
|
||||
// Common Keywords
|
||||
|
||||
SELECT: 'SELECT';
|
||||
FROM: 'FROM';
|
||||
ADD: 'ADD';
|
||||
AS: 'AS';
|
||||
ALL: 'ALL';
|
||||
ANY: 'ANY';
|
||||
DISTINCT: 'DISTINCT';
|
||||
WHERE: 'WHERE';
|
||||
GROUP: 'GROUP';
|
||||
BY: 'BY';
|
||||
GROUPING: 'GROUPING';
|
||||
SETS: 'SETS';
|
||||
CUBE: 'CUBE';
|
||||
ROLLUP: 'ROLLUP';
|
||||
ORDER: 'ORDER';
|
||||
HAVING: 'HAVING';
|
||||
LIMIT: 'LIMIT';
|
||||
AT: 'AT';
|
||||
OR: 'OR';
|
||||
AND: 'AND';
|
||||
IN: 'IN';
|
||||
NOT: 'NOT';
|
||||
NO: 'NO';
|
||||
EXISTS: 'EXISTS';
|
||||
BETWEEN: 'BETWEEN';
|
||||
LIKE: 'LIKE';
|
||||
RLIKE: 'RLIKE';
|
||||
IS: 'IS';
|
||||
TRUE: 'TRUE';
|
||||
FALSE: 'FALSE';
|
||||
NULLS: 'NULLS';
|
||||
ASC: 'ASC';
|
||||
DESC: 'DESC';
|
||||
FOR: 'FOR';
|
||||
INTERVAL: 'INTERVAL';
|
||||
CASE: 'CASE';
|
||||
WHEN: 'WHEN';
|
||||
THEN: 'THEN';
|
||||
ELSE: 'ELSE';
|
||||
END: 'END';
|
||||
JOIN: 'JOIN';
|
||||
CROSS: 'CROSS';
|
||||
OUTER: 'OUTER';
|
||||
INNER: 'INNER';
|
||||
LEFT: 'LEFT';
|
||||
SEMI: 'SEMI';
|
||||
RIGHT: 'RIGHT';
|
||||
FULL: 'FULL';
|
||||
NATURAL: 'NATURAL';
|
||||
ON: 'ON';
|
||||
PIVOT: 'PIVOT';
|
||||
LATERAL: 'LATERAL';
|
||||
WINDOW: 'WINDOW';
|
||||
OVER: 'OVER';
|
||||
PARTITION: 'PARTITION';
|
||||
RANGE: 'RANGE';
|
||||
ROWS: 'ROWS';
|
||||
UNBOUNDED: 'UNBOUNDED';
|
||||
PRECEDING: 'PRECEDING';
|
||||
FOLLOWING: 'FOLLOWING';
|
||||
CURRENT: 'CURRENT';
|
||||
FIRST: 'FIRST';
|
||||
AFTER: 'AFTER';
|
||||
LAST: 'LAST';
|
||||
WITH: 'WITH';
|
||||
VALUES: 'VALUES';
|
||||
CREATE: 'CREATE';
|
||||
TABLE: 'TABLE';
|
||||
DIRECTORY: 'DIRECTORY';
|
||||
VIEW: 'VIEW';
|
||||
REPLACE: 'REPLACE';
|
||||
INSERT: 'INSERT';
|
||||
DELETE: 'DELETE';
|
||||
INTO: 'INTO';
|
||||
DESCRIBE: 'DESCRIBE';
|
||||
EXPLAIN: 'EXPLAIN';
|
||||
FORMAT: 'FORMAT';
|
||||
LOGICAL: 'LOGICAL';
|
||||
CODEGEN: 'CODEGEN';
|
||||
COST: 'COST';
|
||||
CAST: 'CAST';
|
||||
SHOW: 'SHOW';
|
||||
TABLES: 'TABLES';
|
||||
COLUMNS: 'COLUMNS';
|
||||
COLUMN: 'COLUMN';
|
||||
USE: 'USE';
|
||||
PARTITIONS: 'PARTITIONS';
|
||||
FUNCTIONS: 'FUNCTIONS';
|
||||
DROP: 'DROP';
|
||||
UNION: 'UNION';
|
||||
EXCEPT: 'EXCEPT';
|
||||
SETMINUS: 'SETMINUS';
|
||||
INTERSECT: 'INTERSECT';
|
||||
TO: 'TO';
|
||||
TABLESAMPLE: 'TABLESAMPLE';
|
||||
STRATIFY: 'STRATIFY';
|
||||
ALTER: 'ALTER';
|
||||
RENAME: 'RENAME';
|
||||
STRUCT: 'STRUCT';
|
||||
COMMENT: 'COMMENT';
|
||||
SET: 'SET';
|
||||
RESET: 'RESET';
|
||||
DATA: 'DATA';
|
||||
START: 'START';
|
||||
TRANSACTION: 'TRANSACTION';
|
||||
COMMIT: 'COMMIT';
|
||||
ROLLBACK: 'ROLLBACK';
|
||||
MACRO: 'MACRO';
|
||||
IGNORE: 'IGNORE';
|
||||
BOTH: 'BOTH';
|
||||
LEADING: 'LEADING';
|
||||
TRAILING: 'TRAILING';
|
||||
IF: 'IF';
|
||||
POSITION: 'POSITION';
|
||||
EXTRACT: 'EXTRACT';
|
||||
EQ: 'EQ';
|
||||
NSEQ: 'NSEQ';
|
||||
NEQ: 'NEQ';
|
||||
NEQJ: 'NEQJ';
|
||||
LT: 'LT';
|
||||
LTE: 'LTE';
|
||||
GT: 'GT';
|
||||
GTE: 'GTE';
|
||||
PLUS: 'PLUS';
|
||||
MINUS: 'MINUS';
|
||||
ASTERISK: 'ASTERISK';
|
||||
SLASH: 'SLASH';
|
||||
PERCENT: 'PERCENT';
|
||||
DIV: 'DIV';
|
||||
TILDE: 'TILDE';
|
||||
AMPERSAND: 'AMPERSAND';
|
||||
PIPE: 'PIPE';
|
||||
CONCAT_PIPE: 'CONCAT_PIPE';
|
||||
HAT: 'HAT';
|
||||
PERCENTLIT: 'PERCENTLIT';
|
||||
BUCKET: 'BUCKET';
|
||||
OUT: 'OUT';
|
||||
OF: 'OF';
|
||||
SORT: 'SORT';
|
||||
CLUSTER: 'CLUSTER';
|
||||
DISTRIBUTE: 'DISTRIBUTE';
|
||||
OVERWRITE: 'OVERWRITE';
|
||||
TRANSFORM: 'TRANSFORM';
|
||||
REDUCE: 'REDUCE';
|
||||
USING: 'USING';
|
||||
SERDE: 'SERDE';
|
||||
SERDEPROPERTIES: 'SERDEPROPERTIES';
|
||||
RECORDREADER: 'RECORDREADER';
|
||||
RECORDWRITER: 'RECORDWRITER';
|
||||
DELIMITED: 'DELIMITED';
|
||||
FIELDS: 'FIELDS';
|
||||
TERMINATED: 'TERMINATED';
|
||||
COLLECTION: 'COLLECTION';
|
||||
ITEMS: 'ITEMS';
|
||||
KEYS: 'KEYS';
|
||||
ESCAPED: 'ESCAPED';
|
||||
LINES: 'LINES';
|
||||
SEPARATED: 'SEPARATED';
|
||||
FUNCTION: 'FUNCTION';
|
||||
EXTENDED: 'EXTENDED';
|
||||
REFRESH: 'REFRESH';
|
||||
CLEAR: 'CLEAR';
|
||||
CACHE: 'CACHE';
|
||||
UNCACHE: 'UNCACHE';
|
||||
LAZY: 'LAZY';
|
||||
FORMATTED: 'FORMATTED';
|
||||
GLOBAL: 'GLOBAL';
|
||||
TEMPORARY: 'TEMPORARY';
|
||||
OPTIONS: 'OPTIONS';
|
||||
UNSET: 'UNSET';
|
||||
TBLPROPERTIES: 'TBLPROPERTIES';
|
||||
DBPROPERTIES: 'DBPROPERTIES';
|
||||
BUCKETS: 'BUCKETS';
|
||||
SKEWED: 'SKEWED';
|
||||
STORED: 'STORED';
|
||||
DIRECTORIES: 'DIRECTORIES';
|
||||
LOCATION: 'LOCATION';
|
||||
EXCHANGE: 'EXCHANGE';
|
||||
ARCHIVE: 'ARCHIVE';
|
||||
UNARCHIVE: 'UNARCHIVE';
|
||||
FILEFORMAT: 'FILEFORMAT';
|
||||
TOUCH: 'TOUCH';
|
||||
COMPACT: 'COMPACT';
|
||||
CONCATENATE: 'CONCATENATE';
|
||||
CHANGE: 'CHANGE';
|
||||
CASCADE: 'CASCADE';
|
||||
RESTRICT: 'RESTRICT';
|
||||
CLUSTERED: 'CLUSTERED';
|
||||
SORTED: 'SORTED';
|
||||
PURGE: 'PURGE';
|
||||
INPUTFORMAT: 'INPUTFORMAT';
|
||||
OUTPUTFORMAT: 'OUTPUTFORMAT';
|
||||
DATABASE: 'DATABASE';
|
||||
DATABASES: 'DATABASES';
|
||||
DFS: 'DFS';
|
||||
TRUNCATE: 'TRUNCATE';
|
||||
ANALYZE: 'ANALYZE';
|
||||
COMPUTE: 'COMPUTE';
|
||||
LIST: 'LIST';
|
||||
STATISTICS: 'STATISTICS';
|
||||
PARTITIONED: 'PARTITIONED';
|
||||
EXTERNAL: 'EXTERNAL';
|
||||
DEFINED: 'DEFINED';
|
||||
REVOKE: 'REVOKE';
|
||||
GRANT: 'GRANT';
|
||||
LOCK: 'LOCK';
|
||||
UNLOCK: 'UNLOCK';
|
||||
MSCK: 'MSCK';
|
||||
REPAIR: 'REPAIR';
|
||||
RECOVER: 'RECOVER';
|
||||
EXPORT: 'EXPORT';
|
||||
IMPORT: 'IMPORT';
|
||||
LOAD: 'LOAD';
|
||||
ROLE: 'ROLE';
|
||||
ROLES: 'ROLES';
|
||||
COMPACTIONS: 'COMPACTIONS';
|
||||
PRINCIPALS: 'PRINCIPALS';
|
||||
TRANSACTIONS: 'TRANSACTIONS';
|
||||
INDEX: 'INDEX';
|
||||
INDEXES: 'INDEXES';
|
||||
LOCKS: 'LOCKS';
|
||||
OPTION: 'OPTION';
|
||||
ANTI: 'ANTI';
|
||||
LOCAL: 'LOCAL';
|
||||
INPATH: 'INPATH';
|
||||
WATERMARK: 'WATERMARK';
|
||||
UNNEST: 'UNNEST';
|
||||
MATCH_RECOGNIZE: 'MATCH_RECOGNIZE';
|
||||
MEASURES: 'MEASURES';
|
||||
ONE: 'ONE';
|
||||
PER: 'PER';
|
||||
MATCH: 'MATCH';
|
||||
SKIP1: 'SKIP1';
|
||||
NEXT: 'NEXT';
|
||||
PAST: 'PAST';
|
||||
PATTERN: 'PATTERN';
|
||||
WITHIN: 'WITHIN';
|
||||
DEFINE: 'DEFINE';
|
||||
BIGINT_LITERAL: 'BIGINT_LITERAL';
|
||||
SMALLINT_LITERAL: 'SMALLINT_LITERAL';
|
||||
TINYINT_LITERAL: 'TINYINT_LITERAL';
|
||||
INTEGER_VALUE: 'INTEGER_VALUE';
|
||||
DECIMAL_VALUE: 'DECIMAL_VALUE';
|
||||
DOUBLE_LITERAL: 'DOUBLE_LITERAL';
|
||||
BIGDECIMAL_LITERAL: 'BIGDECIMAL_LITERAL';
|
||||
IDENTIFIER: 'IDENTIFIER';
|
||||
BACKQUOTED_IDENTIFIER: 'BACKQUOTED_IDENTIFIER';
|
||||
SIMPLE_COMMENT: 'SIMPLE_COMMENT';
|
||||
BRACKETED_EMPTY_COMMENT: 'BRACKETED_EMPTY_COMMENT';
|
||||
BRACKETED_COMMENT: 'BRACKETED_COMMENT';
|
||||
WS: 'WS';
|
||||
UNRECOGNIZED: 'UNRECOGNIZED';
|
||||
REVERSE_QUOTE_ID: '`' ~'`'+ '`';
|
||||
DOUBLE_QUOTE_ID: '"' ~'"'+ '"';
|
||||
DOT_ID: '.' ID_LITERAL;
|
||||
ID: ID_LITERAL;
|
||||
SYSTEM: 'SYSTEM';
|
||||
|
||||
|
||||
// DATA TYPE Keywords
|
||||
|
||||
STRING: 'STRING';
|
||||
ARRAY: 'ARRAY';
|
||||
MAP: 'MAP';
|
||||
CHAR: 'CHAR';
|
||||
VARCHAR: 'VARCHAR';
|
||||
BINARY: 'BINARY';
|
||||
VARBINARY: 'VARBINARY';
|
||||
BYTES: 'BYTES';
|
||||
DECIMAL: 'DECIMAL';
|
||||
TINYINT: 'TINYINT';
|
||||
SMALLINT: 'SMALLINT';
|
||||
INT: 'INT';
|
||||
BIGINT: 'BIGINT';
|
||||
FLOAT: 'FLOAT';
|
||||
DOUBLE: 'DOUBLE';
|
||||
DATE: 'DATE';
|
||||
TIME: 'TIME';
|
||||
TIMESTAMP: 'TIMESTAMP';
|
||||
MULTISET: 'MULTISET';
|
||||
BOOLEAN: 'BOOLEAN';
|
||||
RAW: 'RAW';
|
||||
ROW: 'ROW';
|
||||
NULL: 'NULL';
|
||||
|
||||
|
||||
// Operators. Comparation
|
||||
|
||||
EQUAL_SYMBOL: '=';
|
||||
GREATER_SYMBOL: '>';
|
||||
LESS_SYMBOL: '<';
|
||||
EXCLAMATION_SYMBOL: '!';
|
||||
|
||||
|
||||
// Operators. Bit
|
||||
|
||||
BIT_NOT_OP: '~';
|
||||
BIT_OR_OP: '|';
|
||||
BIT_AND_OP: '&';
|
||||
BIT_XOR_OP: '^';
|
||||
|
||||
|
||||
// Constructors symbols
|
||||
|
||||
DOT: '.';
|
||||
LS_BRACKET: '[';
|
||||
RS_BRACKET: ']';
|
||||
LR_BRACKET: '(';
|
||||
RR_BRACKET: ')';
|
||||
COMMA: ',';
|
||||
SEMICOLON: ';';
|
||||
AT_SIGN: '@';
|
||||
ZERO_DECIMAL: '0';
|
||||
ONE_DECIMAL: '1';
|
||||
TWO_DECIMAL: '2';
|
||||
SINGLE_QUOTE_SYMB: '\'';
|
||||
DOUBLE_QUOTE_SYMB: '"';
|
||||
REVERSE_QUOTE_SYMB: '`';
|
||||
COLON_SYMB: ':';
|
||||
ASTERISK_SIGN: '*';
|
||||
UNDERLINE_SIGN: '_';
|
||||
STRING_LITERAL: DQUOTA_STRING | SQUOTA_STRING | BQUOTA_STRING;
|
||||
DECIMAL_LITERAL: DEC_DIGIT+;
|
||||
REAL_LITERAL: (DEC_DIGIT+)? '.' DEC_DIGIT+
|
||||
| DEC_DIGIT+ '.' EXPONENT_NUM_PART
|
||||
| (DEC_DIGIT+)? '.' (DEC_DIGIT+ EXPONENT_NUM_PART)
|
||||
| DEC_DIGIT+ EXPONENT_NUM_PART;
|
||||
BIT_STRING: BIT_STRING_L;
|
||||
IDENTIFIER_BASE: (DEC_LETTER | DEC_DIGIT | UNDERLINE_SIGN)+;
|
||||
|
||||
fragment EXPONENT_NUM_PART: 'E' [-+]? DEC_DIGIT+;
|
||||
fragment ID_LITERAL: [A-Z_0-9a-z]*?[A-Z_a-z]+?[A-Z_0-9a-z]*;
|
||||
fragment DEC_DIGIT: [0-9];
|
||||
fragment DEC_LETTER: [A-Za-z];
|
||||
fragment DQUOTA_STRING: '"' ( '\\'. | '""' | ~('"'| '\\') )* '"';
|
||||
fragment SQUOTA_STRING: '\'' ('\\'. | '\'\'' | ~('\'' | '\\'))* '\'';
|
||||
fragment BIT_STRING_L: 'B' '\'' [01]+ '\'';
|
||||
fragment BQUOTA_STRING: '`' ( '\\'. | '``' | ~('`'|'\\'))* '`';
|
@ -1,6 +1,7 @@
|
||||
grammar FlinkSqlParser;
|
||||
|
||||
options { tokenVocab=FlinkSqlLexer; }
|
||||
// import FlinkSqlLexer;
|
||||
// options { tokenVocab=FlinkSqlLexer; }
|
||||
|
||||
program: statement EOF;
|
||||
|
||||
@ -51,11 +52,11 @@ columnName
|
||||
;
|
||||
|
||||
columnType
|
||||
: CHAR | VARCHAR | STRING | BINARY | VARBINARY | BYTES
|
||||
: typeName=(CHAR | VARCHAR | STRING | BINARY | VARBINARY | BYTES
|
||||
| DECIMAL | TINYINT | SMALLINT | INT | BIGINT | FLOAT | DOUBLE
|
||||
| DATE | TIME | TIMESTAMP
|
||||
| ARRAY | MAP | MULTISET | ROW
|
||||
| BOOLEAN | RAW | NULL
|
||||
| BOOLEAN | RAW | NULL)
|
||||
;
|
||||
|
||||
partitionDefinition
|
||||
@ -321,11 +322,11 @@ bitOperator
|
||||
;
|
||||
|
||||
mathOperator
|
||||
: '*' | '/' | '%' | DIV | '+' | '-' | '--'
|
||||
: '*' | SLASH_SIGN | PENCENT_SIGN | DIV | '+' | '-' | DOUBLE_HYPNEN_SIGN
|
||||
;
|
||||
|
||||
unaryOperator
|
||||
: '!' | '~' | '+' | '-' | NOT
|
||||
: '!' | '~' | ADD_SIGN | '-' | NOT
|
||||
;
|
||||
|
||||
fullColumnName
|
||||
@ -335,7 +336,7 @@ fullColumnName
|
||||
constant
|
||||
: stringLiteral // 引号包含的字符串
|
||||
| decimalLiteral // 整数
|
||||
| '-' decimalLiteral // 负整数
|
||||
| HYPNEN_SIGN decimalLiteral // 负整数
|
||||
| booleanLiteral // 布尔值
|
||||
| REAL_LITERAL // 小数
|
||||
| BIT_STRING
|
||||
@ -357,3 +358,365 @@ setQuantifier
|
||||
: DISTINCT
|
||||
| ALL
|
||||
;
|
||||
|
||||
|
||||
/*
|
||||
lexer grammar
|
||||
*/
|
||||
|
||||
|
||||
// SKIP
|
||||
|
||||
SPACE: [ \t\r\n]+ -> channel(HIDDEN);
|
||||
COMMENT_INPUT: '/*' .*? '*/' -> channel(HIDDEN);
|
||||
LINE_COMMENT: (
|
||||
('-- ' | '#') ~[\r\n]* ('\r'? '\n' | EOF)
|
||||
| '--' ('\r'? '\n' | EOF)
|
||||
) -> channel(HIDDEN);
|
||||
|
||||
|
||||
// Common Keywords
|
||||
|
||||
SELECT: 'SELECT';
|
||||
FROM: 'FROM';
|
||||
ADD: 'ADD';
|
||||
AS: 'AS';
|
||||
ALL: 'ALL';
|
||||
ANY: 'ANY';
|
||||
DISTINCT: 'DISTINCT';
|
||||
WHERE: 'WHERE';
|
||||
GROUP: 'GROUP';
|
||||
BY: 'BY';
|
||||
GROUPING: 'GROUPING';
|
||||
SETS: 'SETS';
|
||||
CUBE: 'CUBE';
|
||||
ROLLUP: 'ROLLUP';
|
||||
ORDER: 'ORDER';
|
||||
HAVING: 'HAVING';
|
||||
LIMIT: 'LIMIT';
|
||||
AT: 'AT';
|
||||
OR: 'OR';
|
||||
AND: 'AND';
|
||||
IN: 'IN';
|
||||
NOT: 'NOT';
|
||||
NO: 'NO';
|
||||
EXISTS: 'EXISTS';
|
||||
BETWEEN: 'BETWEEN';
|
||||
LIKE: 'LIKE';
|
||||
RLIKE: 'RLIKE';
|
||||
IS: 'IS';
|
||||
TRUE: 'TRUE';
|
||||
FALSE: 'FALSE';
|
||||
NULLS: 'NULLS';
|
||||
ASC: 'ASC';
|
||||
DESC: 'DESC';
|
||||
FOR: 'FOR';
|
||||
INTERVAL: 'INTERVAL';
|
||||
CASE: 'CASE';
|
||||
WHEN: 'WHEN';
|
||||
THEN: 'THEN';
|
||||
ELSE: 'ELSE';
|
||||
END: 'END';
|
||||
JOIN: 'JOIN';
|
||||
CROSS: 'CROSS';
|
||||
OUTER: 'OUTER';
|
||||
INNER: 'INNER';
|
||||
LEFT: 'LEFT';
|
||||
SEMI: 'SEMI';
|
||||
RIGHT: 'RIGHT';
|
||||
FULL: 'FULL';
|
||||
NATURAL: 'NATURAL';
|
||||
ON: 'ON';
|
||||
PIVOT: 'PIVOT';
|
||||
LATERAL: 'LATERAL';
|
||||
WINDOW: 'WINDOW';
|
||||
OVER: 'OVER';
|
||||
PARTITION: 'PARTITION';
|
||||
RANGE: 'RANGE';
|
||||
ROWS: 'ROWS';
|
||||
UNBOUNDED: 'UNBOUNDED';
|
||||
PRECEDING: 'PRECEDING';
|
||||
FOLLOWING: 'FOLLOWING';
|
||||
CURRENT: 'CURRENT';
|
||||
FIRST: 'FIRST';
|
||||
AFTER: 'AFTER';
|
||||
LAST: 'LAST';
|
||||
WITH: 'WITH';
|
||||
VALUES: 'VALUES';
|
||||
CREATE: 'CREATE';
|
||||
TABLE: 'TABLE';
|
||||
DIRECTORY: 'DIRECTORY';
|
||||
VIEW: 'VIEW';
|
||||
REPLACE: 'REPLACE';
|
||||
INSERT: 'INSERT';
|
||||
DELETE: 'DELETE';
|
||||
INTO: 'INTO';
|
||||
DESCRIBE: 'DESCRIBE';
|
||||
EXPLAIN: 'EXPLAIN';
|
||||
FORMAT: 'FORMAT';
|
||||
LOGICAL: 'LOGICAL';
|
||||
CODEGEN: 'CODEGEN';
|
||||
COST: 'COST';
|
||||
CAST: 'CAST';
|
||||
SHOW: 'SHOW';
|
||||
TABLES: 'TABLES';
|
||||
COLUMNS: 'COLUMNS';
|
||||
COLUMN: 'COLUMN';
|
||||
USE: 'USE';
|
||||
PARTITIONS: 'PARTITIONS';
|
||||
FUNCTIONS: 'FUNCTIONS';
|
||||
DROP: 'DROP';
|
||||
UNION: 'UNION';
|
||||
EXCEPT: 'EXCEPT';
|
||||
SETMINUS: 'SETMINUS';
|
||||
INTERSECT: 'INTERSECT';
|
||||
TO: 'TO';
|
||||
TABLESAMPLE: 'TABLESAMPLE';
|
||||
STRATIFY: 'STRATIFY';
|
||||
ALTER: 'ALTER';
|
||||
RENAME: 'RENAME';
|
||||
STRUCT: 'STRUCT';
|
||||
COMMENT: 'COMMENT';
|
||||
SET: 'SET';
|
||||
RESET: 'RESET';
|
||||
DATA: 'DATA';
|
||||
START: 'START';
|
||||
TRANSACTION: 'TRANSACTION';
|
||||
COMMIT: 'COMMIT';
|
||||
ROLLBACK: 'ROLLBACK';
|
||||
MACRO: 'MACRO';
|
||||
IGNORE: 'IGNORE';
|
||||
BOTH: 'BOTH';
|
||||
LEADING: 'LEADING';
|
||||
TRAILING: 'TRAILING';
|
||||
IF: 'IF';
|
||||
POSITION: 'POSITION';
|
||||
EXTRACT: 'EXTRACT';
|
||||
EQ: 'EQ';
|
||||
NSEQ: 'NSEQ';
|
||||
NEQ: 'NEQ';
|
||||
NEQJ: 'NEQJ';
|
||||
LT: 'LT';
|
||||
LTE: 'LTE';
|
||||
GT: 'GT';
|
||||
GTE: 'GTE';
|
||||
PLUS: 'PLUS';
|
||||
MINUS: 'MINUS';
|
||||
ASTERISK: 'ASTERISK';
|
||||
SLASH: 'SLASH';
|
||||
PERCENT: 'PERCENT';
|
||||
DIV: 'DIV';
|
||||
TILDE: 'TILDE';
|
||||
AMPERSAND: 'AMPERSAND';
|
||||
PIPE: 'PIPE';
|
||||
CONCAT_PIPE: 'CONCAT_PIPE';
|
||||
HAT: 'HAT';
|
||||
PERCENTLIT: 'PERCENTLIT';
|
||||
BUCKET: 'BUCKET';
|
||||
OUT: 'OUT';
|
||||
OF: 'OF';
|
||||
SORT: 'SORT';
|
||||
CLUSTER: 'CLUSTER';
|
||||
DISTRIBUTE: 'DISTRIBUTE';
|
||||
OVERWRITE: 'OVERWRITE';
|
||||
TRANSFORM: 'TRANSFORM';
|
||||
REDUCE: 'REDUCE';
|
||||
USING: 'USING';
|
||||
SERDE: 'SERDE';
|
||||
SERDEPROPERTIES: 'SERDEPROPERTIES';
|
||||
RECORDREADER: 'RECORDREADER';
|
||||
RECORDWRITER: 'RECORDWRITER';
|
||||
DELIMITED: 'DELIMITED';
|
||||
FIELDS: 'FIELDS';
|
||||
TERMINATED: 'TERMINATED';
|
||||
COLLECTION: 'COLLECTION';
|
||||
ITEMS: 'ITEMS';
|
||||
KEYS: 'KEYS';
|
||||
ESCAPED: 'ESCAPED';
|
||||
LINES: 'LINES';
|
||||
SEPARATED: 'SEPARATED';
|
||||
FUNCTION: 'FUNCTION';
|
||||
EXTENDED: 'EXTENDED';
|
||||
REFRESH: 'REFRESH';
|
||||
CLEAR: 'CLEAR';
|
||||
CACHE: 'CACHE';
|
||||
UNCACHE: 'UNCACHE';
|
||||
LAZY: 'LAZY';
|
||||
FORMATTED: 'FORMATTED';
|
||||
GLOBAL: 'GLOBAL';
|
||||
TEMPORARY: 'TEMPORARY';
|
||||
OPTIONS: 'OPTIONS';
|
||||
UNSET: 'UNSET';
|
||||
TBLPROPERTIES: 'TBLPROPERTIES';
|
||||
DBPROPERTIES: 'DBPROPERTIES';
|
||||
BUCKETS: 'BUCKETS';
|
||||
SKEWED: 'SKEWED';
|
||||
STORED: 'STORED';
|
||||
DIRECTORIES: 'DIRECTORIES';
|
||||
LOCATION: 'LOCATION';
|
||||
EXCHANGE: 'EXCHANGE';
|
||||
ARCHIVE: 'ARCHIVE';
|
||||
UNARCHIVE: 'UNARCHIVE';
|
||||
FILEFORMAT: 'FILEFORMAT';
|
||||
TOUCH: 'TOUCH';
|
||||
COMPACT: 'COMPACT';
|
||||
CONCATENATE: 'CONCATENATE';
|
||||
CHANGE: 'CHANGE';
|
||||
CASCADE: 'CASCADE';
|
||||
RESTRICT: 'RESTRICT';
|
||||
CLUSTERED: 'CLUSTERED';
|
||||
SORTED: 'SORTED';
|
||||
PURGE: 'PURGE';
|
||||
INPUTFORMAT: 'INPUTFORMAT';
|
||||
OUTPUTFORMAT: 'OUTPUTFORMAT';
|
||||
DATABASE: 'DATABASE';
|
||||
DATABASES: 'DATABASES';
|
||||
DFS: 'DFS';
|
||||
TRUNCATE: 'TRUNCATE';
|
||||
ANALYZE: 'ANALYZE';
|
||||
COMPUTE: 'COMPUTE';
|
||||
LIST: 'LIST';
|
||||
STATISTICS: 'STATISTICS';
|
||||
PARTITIONED: 'PARTITIONED';
|
||||
EXTERNAL: 'EXTERNAL';
|
||||
DEFINED: 'DEFINED';
|
||||
REVOKE: 'REVOKE';
|
||||
GRANT: 'GRANT';
|
||||
LOCK: 'LOCK';
|
||||
UNLOCK: 'UNLOCK';
|
||||
MSCK: 'MSCK';
|
||||
REPAIR: 'REPAIR';
|
||||
RECOVER: 'RECOVER';
|
||||
EXPORT: 'EXPORT';
|
||||
IMPORT: 'IMPORT';
|
||||
LOAD: 'LOAD';
|
||||
ROLE: 'ROLE';
|
||||
ROLES: 'ROLES';
|
||||
COMPACTIONS: 'COMPACTIONS';
|
||||
PRINCIPALS: 'PRINCIPALS';
|
||||
TRANSACTIONS: 'TRANSACTIONS';
|
||||
INDEX: 'INDEX';
|
||||
INDEXES: 'INDEXES';
|
||||
LOCKS: 'LOCKS';
|
||||
OPTION: 'OPTION';
|
||||
ANTI: 'ANTI';
|
||||
LOCAL: 'LOCAL';
|
||||
INPATH: 'INPATH';
|
||||
WATERMARK: 'WATERMARK';
|
||||
UNNEST: 'UNNEST';
|
||||
MATCH_RECOGNIZE: 'MATCH_RECOGNIZE';
|
||||
MEASURES: 'MEASURES';
|
||||
ONE: 'ONE';
|
||||
PER: 'PER';
|
||||
MATCH: 'MATCH';
|
||||
SKIP1: 'SKIP1';
|
||||
NEXT: 'NEXT';
|
||||
PAST: 'PAST';
|
||||
PATTERN: 'PATTERN';
|
||||
WITHIN: 'WITHIN';
|
||||
DEFINE: 'DEFINE';
|
||||
BIGINT_LITERAL: 'BIGINT_LITERAL';
|
||||
SMALLINT_LITERAL: 'SMALLINT_LITERAL';
|
||||
TINYINT_LITERAL: 'TINYINT_LITERAL';
|
||||
INTEGER_VALUE: 'INTEGER_VALUE';
|
||||
DECIMAL_VALUE: 'DECIMAL_VALUE';
|
||||
DOUBLE_LITERAL: 'DOUBLE_LITERAL';
|
||||
BIGDECIMAL_LITERAL: 'BIGDECIMAL_LITERAL';
|
||||
IDENTIFIER: 'IDENTIFIER';
|
||||
BACKQUOTED_IDENTIFIER: 'BACKQUOTED_IDENTIFIER';
|
||||
SIMPLE_COMMENT: 'SIMPLE_COMMENT';
|
||||
BRACKETED_EMPTY_COMMENT: 'BRACKETED_EMPTY_COMMENT';
|
||||
BRACKETED_COMMENT: 'BRACKETED_COMMENT';
|
||||
WS: 'WS';
|
||||
UNRECOGNIZED: 'UNRECOGNIZED';
|
||||
REVERSE_QUOTE_ID: '`' ~'`'+ '`';
|
||||
DOUBLE_QUOTE_ID: '"' ~'"'+ '"';
|
||||
DOT_ID: '.' ID_LITERAL;
|
||||
ID: ID_LITERAL;
|
||||
SYSTEM: 'SYSTEM';
|
||||
|
||||
|
||||
// DATA TYPE Keywords
|
||||
|
||||
STRING: 'STRING';
|
||||
ARRAY: 'ARRAY';
|
||||
MAP: 'MAP';
|
||||
CHAR: 'CHAR';
|
||||
VARCHAR: 'VARCHAR';
|
||||
BINARY: 'BINARY';
|
||||
VARBINARY: 'VARBINARY';
|
||||
BYTES: 'BYTES';
|
||||
DECIMAL: 'DECIMAL';
|
||||
TINYINT: 'TINYINT';
|
||||
SMALLINT: 'SMALLINT';
|
||||
INT: 'INT';
|
||||
BIGINT: 'BIGINT';
|
||||
FLOAT: 'FLOAT';
|
||||
DOUBLE: 'DOUBLE';
|
||||
DATE: 'DATE';
|
||||
TIME: 'TIME';
|
||||
TIMESTAMP: 'TIMESTAMP';
|
||||
MULTISET: 'MULTISET';
|
||||
BOOLEAN: 'BOOLEAN';
|
||||
RAW: 'RAW';
|
||||
ROW: 'ROW';
|
||||
NULL: 'NULL';
|
||||
|
||||
|
||||
// Operators. Comparation
|
||||
|
||||
EQUAL_SYMBOL: '=';
|
||||
GREATER_SYMBOL: '>';
|
||||
LESS_SYMBOL: '<';
|
||||
EXCLAMATION_SYMBOL: '!';
|
||||
|
||||
|
||||
// Operators. Bit
|
||||
|
||||
BIT_NOT_OP: '~';
|
||||
BIT_OR_OP: '|';
|
||||
BIT_AND_OP: '&';
|
||||
BIT_XOR_OP: '^';
|
||||
|
||||
|
||||
// Constructors symbols
|
||||
|
||||
DOT: '.';
|
||||
LS_BRACKET: '[';
|
||||
RS_BRACKET: ']';
|
||||
LR_BRACKET: '(';
|
||||
RR_BRACKET: ')';
|
||||
COMMA: ',';
|
||||
SEMICOLON: ';';
|
||||
AT_SIGN: '@';
|
||||
ZERO_DECIMAL: '0';
|
||||
ONE_DECIMAL: '1';
|
||||
TWO_DECIMAL: '2';
|
||||
SINGLE_QUOTE_SYMB: '\'';
|
||||
DOUBLE_QUOTE_SYMB: '"';
|
||||
REVERSE_QUOTE_SYMB: '`';
|
||||
COLON_SYMB: ':';
|
||||
ASTERISK_SIGN: '*';
|
||||
UNDERLINE_SIGN: '_';
|
||||
HYPNEN_SIGN: '-';
|
||||
ADD_SIGN: '+';
|
||||
PENCENT_SIGN: '%';
|
||||
DOUBLE_HYPNEN_SIGN: '--';
|
||||
SLASH_SIGN: '/';
|
||||
STRING_LITERAL: DQUOTA_STRING | SQUOTA_STRING | BQUOTA_STRING;
|
||||
DECIMAL_LITERAL: DEC_DIGIT+;
|
||||
REAL_LITERAL: (DEC_DIGIT+)? '.' DEC_DIGIT+
|
||||
| DEC_DIGIT+ '.' EXPONENT_NUM_PART
|
||||
| (DEC_DIGIT+)? '.' (DEC_DIGIT+ EXPONENT_NUM_PART)
|
||||
| DEC_DIGIT+ EXPONENT_NUM_PART;
|
||||
BIT_STRING: BIT_STRING_L;
|
||||
IDENTIFIER_BASE: (DEC_LETTER | DEC_DIGIT | UNDERLINE_SIGN)+;
|
||||
|
||||
fragment EXPONENT_NUM_PART: 'E' [-+]? DEC_DIGIT+;
|
||||
fragment ID_LITERAL: [A-Z_0-9a-z]*?[A-Z_a-z]+?[A-Z_0-9a-z]*;
|
||||
fragment DEC_DIGIT: [0-9];
|
||||
fragment DEC_LETTER: [A-Za-z];
|
||||
fragment DQUOTA_STRING: '"' ( '\\'. | '""' | ~('"'| '\\') )* '"';
|
||||
fragment SQUOTA_STRING: '\'' ('\\'. | '\'\'' | ~('\'' | '\\'))* '\'';
|
||||
fragment BIT_STRING_L: 'B' '\'' [01]+ '\'';
|
||||
fragment BQUOTA_STRING: '`' ( '\\'. | '``' | ~('`'|'\\'))* '`';
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -291,23 +291,32 @@ BIT_OR_OP=290
|
||||
BIT_AND_OP=291
|
||||
BIT_XOR_OP=292
|
||||
DOT=293
|
||||
LR_BRACKET=294
|
||||
RR_BRACKET=295
|
||||
COMMA=296
|
||||
SEMICOLON=297
|
||||
AT_SIGN=298
|
||||
ZERO_DECIMAL=299
|
||||
ONE_DECIMAL=300
|
||||
TWO_DECIMAL=301
|
||||
SINGLE_QUOTE_SYMB=302
|
||||
DOUBLE_QUOTE_SYMB=303
|
||||
REVERSE_QUOTE_SYMB=304
|
||||
COLON_SYMB=305
|
||||
ASTERISK_SIGN=306
|
||||
STRING_LITERAL=307
|
||||
DECIMAL_LITERAL=308
|
||||
REAL_LITERAL=309
|
||||
BIT_STRING=310
|
||||
LS_BRACKET=294
|
||||
RS_BRACKET=295
|
||||
LR_BRACKET=296
|
||||
RR_BRACKET=297
|
||||
COMMA=298
|
||||
SEMICOLON=299
|
||||
AT_SIGN=300
|
||||
ZERO_DECIMAL=301
|
||||
ONE_DECIMAL=302
|
||||
TWO_DECIMAL=303
|
||||
SINGLE_QUOTE_SYMB=304
|
||||
DOUBLE_QUOTE_SYMB=305
|
||||
REVERSE_QUOTE_SYMB=306
|
||||
COLON_SYMB=307
|
||||
ASTERISK_SIGN=308
|
||||
UNDERLINE_SIGN=309
|
||||
HYPNEN_SIGN=310
|
||||
ADD_SIGN=311
|
||||
PENCENT_SIGN=312
|
||||
DOUBLE_HYPNEN_SIGN=313
|
||||
SLASH_SIGN=314
|
||||
STRING_LITERAL=315
|
||||
DECIMAL_LITERAL=316
|
||||
REAL_LITERAL=317
|
||||
BIT_STRING=318
|
||||
IDENTIFIER_BASE=319
|
||||
'SELECT'=5
|
||||
'FROM'=6
|
||||
'ADD'=7
|
||||
@ -593,16 +602,24 @@ BIT_STRING=310
|
||||
'&'=291
|
||||
'^'=292
|
||||
'.'=293
|
||||
'('=294
|
||||
')'=295
|
||||
','=296
|
||||
';'=297
|
||||
'@'=298
|
||||
'0'=299
|
||||
'1'=300
|
||||
'2'=301
|
||||
'\''=302
|
||||
'"'=303
|
||||
'`'=304
|
||||
':'=305
|
||||
'*'=306
|
||||
'['=294
|
||||
']'=295
|
||||
'('=296
|
||||
')'=297
|
||||
','=298
|
||||
';'=299
|
||||
'@'=300
|
||||
'0'=301
|
||||
'1'=302
|
||||
'2'=303
|
||||
'\''=304
|
||||
'"'=305
|
||||
'`'=306
|
||||
':'=307
|
||||
'*'=308
|
||||
'_'=309
|
||||
'-'=310
|
||||
'+'=311
|
||||
'%'=312
|
||||
'--'=313
|
||||
'/'=314
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,36 +1,624 @@
|
||||
T__0=1
|
||||
T__1=2
|
||||
T__2=3
|
||||
T__3=4
|
||||
T__4=5
|
||||
T__5=6
|
||||
T__6=7
|
||||
T__7=8
|
||||
T__8=9
|
||||
T__9=10
|
||||
T__10=11
|
||||
T__11=12
|
||||
T__12=13
|
||||
T__13=14
|
||||
T__14=15
|
||||
T__15=16
|
||||
T__16=17
|
||||
T__17=18
|
||||
'.'=1
|
||||
'*'=2
|
||||
','=3
|
||||
'!'=4
|
||||
'('=5
|
||||
')'=6
|
||||
'&'=7
|
||||
'|'=8
|
||||
'='=9
|
||||
'>'=10
|
||||
'<'=11
|
||||
'^'=12
|
||||
'/'=13
|
||||
'%'=14
|
||||
'+'=15
|
||||
'-'=16
|
||||
'--'=17
|
||||
'~'=18
|
||||
SPACE=1
|
||||
COMMENT_INPUT=2
|
||||
LINE_COMMENT=3
|
||||
SELECT=4
|
||||
FROM=5
|
||||
ADD=6
|
||||
AS=7
|
||||
ALL=8
|
||||
ANY=9
|
||||
DISTINCT=10
|
||||
WHERE=11
|
||||
GROUP=12
|
||||
BY=13
|
||||
GROUPING=14
|
||||
SETS=15
|
||||
CUBE=16
|
||||
ROLLUP=17
|
||||
ORDER=18
|
||||
HAVING=19
|
||||
LIMIT=20
|
||||
AT=21
|
||||
OR=22
|
||||
AND=23
|
||||
IN=24
|
||||
NOT=25
|
||||
NO=26
|
||||
EXISTS=27
|
||||
BETWEEN=28
|
||||
LIKE=29
|
||||
RLIKE=30
|
||||
IS=31
|
||||
TRUE=32
|
||||
FALSE=33
|
||||
NULLS=34
|
||||
ASC=35
|
||||
DESC=36
|
||||
FOR=37
|
||||
INTERVAL=38
|
||||
CASE=39
|
||||
WHEN=40
|
||||
THEN=41
|
||||
ELSE=42
|
||||
END=43
|
||||
JOIN=44
|
||||
CROSS=45
|
||||
OUTER=46
|
||||
INNER=47
|
||||
LEFT=48
|
||||
SEMI=49
|
||||
RIGHT=50
|
||||
FULL=51
|
||||
NATURAL=52
|
||||
ON=53
|
||||
PIVOT=54
|
||||
LATERAL=55
|
||||
WINDOW=56
|
||||
OVER=57
|
||||
PARTITION=58
|
||||
RANGE=59
|
||||
ROWS=60
|
||||
UNBOUNDED=61
|
||||
PRECEDING=62
|
||||
FOLLOWING=63
|
||||
CURRENT=64
|
||||
FIRST=65
|
||||
AFTER=66
|
||||
LAST=67
|
||||
WITH=68
|
||||
VALUES=69
|
||||
CREATE=70
|
||||
TABLE=71
|
||||
DIRECTORY=72
|
||||
VIEW=73
|
||||
REPLACE=74
|
||||
INSERT=75
|
||||
DELETE=76
|
||||
INTO=77
|
||||
DESCRIBE=78
|
||||
EXPLAIN=79
|
||||
FORMAT=80
|
||||
LOGICAL=81
|
||||
CODEGEN=82
|
||||
COST=83
|
||||
CAST=84
|
||||
SHOW=85
|
||||
TABLES=86
|
||||
COLUMNS=87
|
||||
COLUMN=88
|
||||
USE=89
|
||||
PARTITIONS=90
|
||||
FUNCTIONS=91
|
||||
DROP=92
|
||||
UNION=93
|
||||
EXCEPT=94
|
||||
SETMINUS=95
|
||||
INTERSECT=96
|
||||
TO=97
|
||||
TABLESAMPLE=98
|
||||
STRATIFY=99
|
||||
ALTER=100
|
||||
RENAME=101
|
||||
STRUCT=102
|
||||
COMMENT=103
|
||||
SET=104
|
||||
RESET=105
|
||||
DATA=106
|
||||
START=107
|
||||
TRANSACTION=108
|
||||
COMMIT=109
|
||||
ROLLBACK=110
|
||||
MACRO=111
|
||||
IGNORE=112
|
||||
BOTH=113
|
||||
LEADING=114
|
||||
TRAILING=115
|
||||
IF=116
|
||||
POSITION=117
|
||||
EXTRACT=118
|
||||
EQ=119
|
||||
NSEQ=120
|
||||
NEQ=121
|
||||
NEQJ=122
|
||||
LT=123
|
||||
LTE=124
|
||||
GT=125
|
||||
GTE=126
|
||||
PLUS=127
|
||||
MINUS=128
|
||||
ASTERISK=129
|
||||
SLASH=130
|
||||
PERCENT=131
|
||||
DIV=132
|
||||
TILDE=133
|
||||
AMPERSAND=134
|
||||
PIPE=135
|
||||
CONCAT_PIPE=136
|
||||
HAT=137
|
||||
PERCENTLIT=138
|
||||
BUCKET=139
|
||||
OUT=140
|
||||
OF=141
|
||||
SORT=142
|
||||
CLUSTER=143
|
||||
DISTRIBUTE=144
|
||||
OVERWRITE=145
|
||||
TRANSFORM=146
|
||||
REDUCE=147
|
||||
USING=148
|
||||
SERDE=149
|
||||
SERDEPROPERTIES=150
|
||||
RECORDREADER=151
|
||||
RECORDWRITER=152
|
||||
DELIMITED=153
|
||||
FIELDS=154
|
||||
TERMINATED=155
|
||||
COLLECTION=156
|
||||
ITEMS=157
|
||||
KEYS=158
|
||||
ESCAPED=159
|
||||
LINES=160
|
||||
SEPARATED=161
|
||||
FUNCTION=162
|
||||
EXTENDED=163
|
||||
REFRESH=164
|
||||
CLEAR=165
|
||||
CACHE=166
|
||||
UNCACHE=167
|
||||
LAZY=168
|
||||
FORMATTED=169
|
||||
GLOBAL=170
|
||||
TEMPORARY=171
|
||||
OPTIONS=172
|
||||
UNSET=173
|
||||
TBLPROPERTIES=174
|
||||
DBPROPERTIES=175
|
||||
BUCKETS=176
|
||||
SKEWED=177
|
||||
STORED=178
|
||||
DIRECTORIES=179
|
||||
LOCATION=180
|
||||
EXCHANGE=181
|
||||
ARCHIVE=182
|
||||
UNARCHIVE=183
|
||||
FILEFORMAT=184
|
||||
TOUCH=185
|
||||
COMPACT=186
|
||||
CONCATENATE=187
|
||||
CHANGE=188
|
||||
CASCADE=189
|
||||
RESTRICT=190
|
||||
CLUSTERED=191
|
||||
SORTED=192
|
||||
PURGE=193
|
||||
INPUTFORMAT=194
|
||||
OUTPUTFORMAT=195
|
||||
DATABASE=196
|
||||
DATABASES=197
|
||||
DFS=198
|
||||
TRUNCATE=199
|
||||
ANALYZE=200
|
||||
COMPUTE=201
|
||||
LIST=202
|
||||
STATISTICS=203
|
||||
PARTITIONED=204
|
||||
EXTERNAL=205
|
||||
DEFINED=206
|
||||
REVOKE=207
|
||||
GRANT=208
|
||||
LOCK=209
|
||||
UNLOCK=210
|
||||
MSCK=211
|
||||
REPAIR=212
|
||||
RECOVER=213
|
||||
EXPORT=214
|
||||
IMPORT=215
|
||||
LOAD=216
|
||||
ROLE=217
|
||||
ROLES=218
|
||||
COMPACTIONS=219
|
||||
PRINCIPALS=220
|
||||
TRANSACTIONS=221
|
||||
INDEX=222
|
||||
INDEXES=223
|
||||
LOCKS=224
|
||||
OPTION=225
|
||||
ANTI=226
|
||||
LOCAL=227
|
||||
INPATH=228
|
||||
WATERMARK=229
|
||||
UNNEST=230
|
||||
MATCH_RECOGNIZE=231
|
||||
MEASURES=232
|
||||
ONE=233
|
||||
PER=234
|
||||
MATCH=235
|
||||
SKIP1=236
|
||||
NEXT=237
|
||||
PAST=238
|
||||
PATTERN=239
|
||||
WITHIN=240
|
||||
DEFINE=241
|
||||
BIGINT_LITERAL=242
|
||||
SMALLINT_LITERAL=243
|
||||
TINYINT_LITERAL=244
|
||||
INTEGER_VALUE=245
|
||||
DECIMAL_VALUE=246
|
||||
DOUBLE_LITERAL=247
|
||||
BIGDECIMAL_LITERAL=248
|
||||
IDENTIFIER=249
|
||||
BACKQUOTED_IDENTIFIER=250
|
||||
SIMPLE_COMMENT=251
|
||||
BRACKETED_EMPTY_COMMENT=252
|
||||
BRACKETED_COMMENT=253
|
||||
WS=254
|
||||
UNRECOGNIZED=255
|
||||
REVERSE_QUOTE_ID=256
|
||||
DOUBLE_QUOTE_ID=257
|
||||
DOT_ID=258
|
||||
ID=259
|
||||
SYSTEM=260
|
||||
STRING=261
|
||||
ARRAY=262
|
||||
MAP=263
|
||||
CHAR=264
|
||||
VARCHAR=265
|
||||
BINARY=266
|
||||
VARBINARY=267
|
||||
BYTES=268
|
||||
DECIMAL=269
|
||||
TINYINT=270
|
||||
SMALLINT=271
|
||||
INT=272
|
||||
BIGINT=273
|
||||
FLOAT=274
|
||||
DOUBLE=275
|
||||
DATE=276
|
||||
TIME=277
|
||||
TIMESTAMP=278
|
||||
MULTISET=279
|
||||
BOOLEAN=280
|
||||
RAW=281
|
||||
ROW=282
|
||||
NULL=283
|
||||
EQUAL_SYMBOL=284
|
||||
GREATER_SYMBOL=285
|
||||
LESS_SYMBOL=286
|
||||
EXCLAMATION_SYMBOL=287
|
||||
BIT_NOT_OP=288
|
||||
BIT_OR_OP=289
|
||||
BIT_AND_OP=290
|
||||
BIT_XOR_OP=291
|
||||
DOT=292
|
||||
LS_BRACKET=293
|
||||
RS_BRACKET=294
|
||||
LR_BRACKET=295
|
||||
RR_BRACKET=296
|
||||
COMMA=297
|
||||
SEMICOLON=298
|
||||
AT_SIGN=299
|
||||
ZERO_DECIMAL=300
|
||||
ONE_DECIMAL=301
|
||||
TWO_DECIMAL=302
|
||||
SINGLE_QUOTE_SYMB=303
|
||||
DOUBLE_QUOTE_SYMB=304
|
||||
REVERSE_QUOTE_SYMB=305
|
||||
COLON_SYMB=306
|
||||
ASTERISK_SIGN=307
|
||||
UNDERLINE_SIGN=308
|
||||
HYPNEN_SIGN=309
|
||||
ADD_SIGN=310
|
||||
PENCENT_SIGN=311
|
||||
DOUBLE_HYPNEN_SIGN=312
|
||||
SLASH_SIGN=313
|
||||
STRING_LITERAL=314
|
||||
DECIMAL_LITERAL=315
|
||||
REAL_LITERAL=316
|
||||
BIT_STRING=317
|
||||
IDENTIFIER_BASE=318
|
||||
'SELECT'=4
|
||||
'FROM'=5
|
||||
'ADD'=6
|
||||
'AS'=7
|
||||
'ALL'=8
|
||||
'ANY'=9
|
||||
'DISTINCT'=10
|
||||
'WHERE'=11
|
||||
'GROUP'=12
|
||||
'BY'=13
|
||||
'GROUPING'=14
|
||||
'SETS'=15
|
||||
'CUBE'=16
|
||||
'ROLLUP'=17
|
||||
'ORDER'=18
|
||||
'HAVING'=19
|
||||
'LIMIT'=20
|
||||
'AT'=21
|
||||
'OR'=22
|
||||
'AND'=23
|
||||
'IN'=24
|
||||
'NOT'=25
|
||||
'NO'=26
|
||||
'EXISTS'=27
|
||||
'BETWEEN'=28
|
||||
'LIKE'=29
|
||||
'RLIKE'=30
|
||||
'IS'=31
|
||||
'TRUE'=32
|
||||
'FALSE'=33
|
||||
'NULLS'=34
|
||||
'ASC'=35
|
||||
'DESC'=36
|
||||
'FOR'=37
|
||||
'INTERVAL'=38
|
||||
'CASE'=39
|
||||
'WHEN'=40
|
||||
'THEN'=41
|
||||
'ELSE'=42
|
||||
'END'=43
|
||||
'JOIN'=44
|
||||
'CROSS'=45
|
||||
'OUTER'=46
|
||||
'INNER'=47
|
||||
'LEFT'=48
|
||||
'SEMI'=49
|
||||
'RIGHT'=50
|
||||
'FULL'=51
|
||||
'NATURAL'=52
|
||||
'ON'=53
|
||||
'PIVOT'=54
|
||||
'LATERAL'=55
|
||||
'WINDOW'=56
|
||||
'OVER'=57
|
||||
'PARTITION'=58
|
||||
'RANGE'=59
|
||||
'ROWS'=60
|
||||
'UNBOUNDED'=61
|
||||
'PRECEDING'=62
|
||||
'FOLLOWING'=63
|
||||
'CURRENT'=64
|
||||
'FIRST'=65
|
||||
'AFTER'=66
|
||||
'LAST'=67
|
||||
'WITH'=68
|
||||
'VALUES'=69
|
||||
'CREATE'=70
|
||||
'TABLE'=71
|
||||
'DIRECTORY'=72
|
||||
'VIEW'=73
|
||||
'REPLACE'=74
|
||||
'INSERT'=75
|
||||
'DELETE'=76
|
||||
'INTO'=77
|
||||
'DESCRIBE'=78
|
||||
'EXPLAIN'=79
|
||||
'FORMAT'=80
|
||||
'LOGICAL'=81
|
||||
'CODEGEN'=82
|
||||
'COST'=83
|
||||
'CAST'=84
|
||||
'SHOW'=85
|
||||
'TABLES'=86
|
||||
'COLUMNS'=87
|
||||
'COLUMN'=88
|
||||
'USE'=89
|
||||
'PARTITIONS'=90
|
||||
'FUNCTIONS'=91
|
||||
'DROP'=92
|
||||
'UNION'=93
|
||||
'EXCEPT'=94
|
||||
'SETMINUS'=95
|
||||
'INTERSECT'=96
|
||||
'TO'=97
|
||||
'TABLESAMPLE'=98
|
||||
'STRATIFY'=99
|
||||
'ALTER'=100
|
||||
'RENAME'=101
|
||||
'STRUCT'=102
|
||||
'COMMENT'=103
|
||||
'SET'=104
|
||||
'RESET'=105
|
||||
'DATA'=106
|
||||
'START'=107
|
||||
'TRANSACTION'=108
|
||||
'COMMIT'=109
|
||||
'ROLLBACK'=110
|
||||
'MACRO'=111
|
||||
'IGNORE'=112
|
||||
'BOTH'=113
|
||||
'LEADING'=114
|
||||
'TRAILING'=115
|
||||
'IF'=116
|
||||
'POSITION'=117
|
||||
'EXTRACT'=118
|
||||
'EQ'=119
|
||||
'NSEQ'=120
|
||||
'NEQ'=121
|
||||
'NEQJ'=122
|
||||
'LT'=123
|
||||
'LTE'=124
|
||||
'GT'=125
|
||||
'GTE'=126
|
||||
'PLUS'=127
|
||||
'MINUS'=128
|
||||
'ASTERISK'=129
|
||||
'SLASH'=130
|
||||
'PERCENT'=131
|
||||
'DIV'=132
|
||||
'TILDE'=133
|
||||
'AMPERSAND'=134
|
||||
'PIPE'=135
|
||||
'CONCAT_PIPE'=136
|
||||
'HAT'=137
|
||||
'PERCENTLIT'=138
|
||||
'BUCKET'=139
|
||||
'OUT'=140
|
||||
'OF'=141
|
||||
'SORT'=142
|
||||
'CLUSTER'=143
|
||||
'DISTRIBUTE'=144
|
||||
'OVERWRITE'=145
|
||||
'TRANSFORM'=146
|
||||
'REDUCE'=147
|
||||
'USING'=148
|
||||
'SERDE'=149
|
||||
'SERDEPROPERTIES'=150
|
||||
'RECORDREADER'=151
|
||||
'RECORDWRITER'=152
|
||||
'DELIMITED'=153
|
||||
'FIELDS'=154
|
||||
'TERMINATED'=155
|
||||
'COLLECTION'=156
|
||||
'ITEMS'=157
|
||||
'KEYS'=158
|
||||
'ESCAPED'=159
|
||||
'LINES'=160
|
||||
'SEPARATED'=161
|
||||
'FUNCTION'=162
|
||||
'EXTENDED'=163
|
||||
'REFRESH'=164
|
||||
'CLEAR'=165
|
||||
'CACHE'=166
|
||||
'UNCACHE'=167
|
||||
'LAZY'=168
|
||||
'FORMATTED'=169
|
||||
'GLOBAL'=170
|
||||
'TEMPORARY'=171
|
||||
'OPTIONS'=172
|
||||
'UNSET'=173
|
||||
'TBLPROPERTIES'=174
|
||||
'DBPROPERTIES'=175
|
||||
'BUCKETS'=176
|
||||
'SKEWED'=177
|
||||
'STORED'=178
|
||||
'DIRECTORIES'=179
|
||||
'LOCATION'=180
|
||||
'EXCHANGE'=181
|
||||
'ARCHIVE'=182
|
||||
'UNARCHIVE'=183
|
||||
'FILEFORMAT'=184
|
||||
'TOUCH'=185
|
||||
'COMPACT'=186
|
||||
'CONCATENATE'=187
|
||||
'CHANGE'=188
|
||||
'CASCADE'=189
|
||||
'RESTRICT'=190
|
||||
'CLUSTERED'=191
|
||||
'SORTED'=192
|
||||
'PURGE'=193
|
||||
'INPUTFORMAT'=194
|
||||
'OUTPUTFORMAT'=195
|
||||
'DATABASE'=196
|
||||
'DATABASES'=197
|
||||
'DFS'=198
|
||||
'TRUNCATE'=199
|
||||
'ANALYZE'=200
|
||||
'COMPUTE'=201
|
||||
'LIST'=202
|
||||
'STATISTICS'=203
|
||||
'PARTITIONED'=204
|
||||
'EXTERNAL'=205
|
||||
'DEFINED'=206
|
||||
'REVOKE'=207
|
||||
'GRANT'=208
|
||||
'LOCK'=209
|
||||
'UNLOCK'=210
|
||||
'MSCK'=211
|
||||
'REPAIR'=212
|
||||
'RECOVER'=213
|
||||
'EXPORT'=214
|
||||
'IMPORT'=215
|
||||
'LOAD'=216
|
||||
'ROLE'=217
|
||||
'ROLES'=218
|
||||
'COMPACTIONS'=219
|
||||
'PRINCIPALS'=220
|
||||
'TRANSACTIONS'=221
|
||||
'INDEX'=222
|
||||
'INDEXES'=223
|
||||
'LOCKS'=224
|
||||
'OPTION'=225
|
||||
'ANTI'=226
|
||||
'LOCAL'=227
|
||||
'INPATH'=228
|
||||
'WATERMARK'=229
|
||||
'UNNEST'=230
|
||||
'MATCH_RECOGNIZE'=231
|
||||
'MEASURES'=232
|
||||
'ONE'=233
|
||||
'PER'=234
|
||||
'MATCH'=235
|
||||
'SKIP1'=236
|
||||
'NEXT'=237
|
||||
'PAST'=238
|
||||
'PATTERN'=239
|
||||
'WITHIN'=240
|
||||
'DEFINE'=241
|
||||
'BIGINT_LITERAL'=242
|
||||
'SMALLINT_LITERAL'=243
|
||||
'TINYINT_LITERAL'=244
|
||||
'INTEGER_VALUE'=245
|
||||
'DECIMAL_VALUE'=246
|
||||
'DOUBLE_LITERAL'=247
|
||||
'BIGDECIMAL_LITERAL'=248
|
||||
'IDENTIFIER'=249
|
||||
'BACKQUOTED_IDENTIFIER'=250
|
||||
'SIMPLE_COMMENT'=251
|
||||
'BRACKETED_EMPTY_COMMENT'=252
|
||||
'BRACKETED_COMMENT'=253
|
||||
'WS'=254
|
||||
'UNRECOGNIZED'=255
|
||||
'SYSTEM'=260
|
||||
'STRING'=261
|
||||
'ARRAY'=262
|
||||
'MAP'=263
|
||||
'CHAR'=264
|
||||
'VARCHAR'=265
|
||||
'BINARY'=266
|
||||
'VARBINARY'=267
|
||||
'BYTES'=268
|
||||
'DECIMAL'=269
|
||||
'TINYINT'=270
|
||||
'SMALLINT'=271
|
||||
'INT'=272
|
||||
'BIGINT'=273
|
||||
'FLOAT'=274
|
||||
'DOUBLE'=275
|
||||
'DATE'=276
|
||||
'TIME'=277
|
||||
'TIMESTAMP'=278
|
||||
'MULTISET'=279
|
||||
'BOOLEAN'=280
|
||||
'RAW'=281
|
||||
'ROW'=282
|
||||
'NULL'=283
|
||||
'='=284
|
||||
'>'=285
|
||||
'<'=286
|
||||
'!'=287
|
||||
'~'=288
|
||||
'|'=289
|
||||
'&'=290
|
||||
'^'=291
|
||||
'.'=292
|
||||
'['=293
|
||||
']'=294
|
||||
'('=295
|
||||
')'=296
|
||||
','=297
|
||||
';'=298
|
||||
'@'=299
|
||||
'0'=300
|
||||
'1'=301
|
||||
'2'=302
|
||||
'\''=303
|
||||
'"'=304
|
||||
'`'=305
|
||||
':'=306
|
||||
'*'=307
|
||||
'_'=308
|
||||
'-'=309
|
||||
'+'=310
|
||||
'%'=311
|
||||
'--'=312
|
||||
'/'=313
|
||||
|
@ -245,186 +245,6 @@ FlinkSqlParserListener.prototype.exitDropFunction = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#queryStatement.
|
||||
FlinkSqlParserListener.prototype.enterQueryStatement = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#queryStatement.
|
||||
FlinkSqlParserListener.prototype.exitQueryStatement = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#selectStatements.
|
||||
FlinkSqlParserListener.prototype.enterSelectStatements = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#selectStatements.
|
||||
FlinkSqlParserListener.prototype.exitSelectStatements = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#selectStatement.
|
||||
FlinkSqlParserListener.prototype.enterSelectStatement = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#selectStatement.
|
||||
FlinkSqlParserListener.prototype.exitSelectStatement = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#projectItemDefinition.
|
||||
FlinkSqlParserListener.prototype.enterProjectItemDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#projectItemDefinition.
|
||||
FlinkSqlParserListener.prototype.exitProjectItemDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#tableExpression.
|
||||
FlinkSqlParserListener.prototype.enterTableExpression = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#tableExpression.
|
||||
FlinkSqlParserListener.prototype.exitTableExpression = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#tableReference.
|
||||
FlinkSqlParserListener.prototype.enterTableReference = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#tableReference.
|
||||
FlinkSqlParserListener.prototype.exitTableReference = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#matchRecognize.
|
||||
FlinkSqlParserListener.prototype.enterMatchRecognize = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#matchRecognize.
|
||||
FlinkSqlParserListener.prototype.exitMatchRecognize = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#tablePrimary.
|
||||
FlinkSqlParserListener.prototype.enterTablePrimary = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#tablePrimary.
|
||||
FlinkSqlParserListener.prototype.exitTablePrimary = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#dynamicTableOptions.
|
||||
FlinkSqlParserListener.prototype.enterDynamicTableOptions = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#dynamicTableOptions.
|
||||
FlinkSqlParserListener.prototype.exitDynamicTableOptions = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#joinCondition.
|
||||
FlinkSqlParserListener.prototype.enterJoinCondition = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#joinCondition.
|
||||
FlinkSqlParserListener.prototype.exitJoinCondition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#booleanExpression.
|
||||
FlinkSqlParserListener.prototype.enterBooleanExpression = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#booleanExpression.
|
||||
FlinkSqlParserListener.prototype.exitBooleanExpression = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#groupItemDefinition.
|
||||
FlinkSqlParserListener.prototype.enterGroupItemDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#groupItemDefinition.
|
||||
FlinkSqlParserListener.prototype.exitGroupItemDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#selectWithoutFromDefinition.
|
||||
FlinkSqlParserListener.prototype.enterSelectWithoutFromDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#selectWithoutFromDefinition.
|
||||
FlinkSqlParserListener.prototype.exitSelectWithoutFromDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#projectItem.
|
||||
FlinkSqlParserListener.prototype.enterProjectItem = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#projectItem.
|
||||
FlinkSqlParserListener.prototype.exitProjectItem = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#queryOrderByDefinition.
|
||||
FlinkSqlParserListener.prototype.enterQueryOrderByDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#queryOrderByDefinition.
|
||||
FlinkSqlParserListener.prototype.exitQueryOrderByDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#orderItemDefition.
|
||||
FlinkSqlParserListener.prototype.enterOrderItemDefition = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#orderItemDefition.
|
||||
FlinkSqlParserListener.prototype.exitOrderItemDefition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#queryLimitDefinition.
|
||||
FlinkSqlParserListener.prototype.enterQueryLimitDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#queryLimitDefinition.
|
||||
FlinkSqlParserListener.prototype.exitQueryLimitDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#countDefinition.
|
||||
FlinkSqlParserListener.prototype.enterCountDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#countDefinition.
|
||||
FlinkSqlParserListener.prototype.exitCountDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#queryOffsetDefinition.
|
||||
FlinkSqlParserListener.prototype.enterQueryOffsetDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#queryOffsetDefinition.
|
||||
FlinkSqlParserListener.prototype.exitQueryOffsetDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#queryFetchDefinition.
|
||||
FlinkSqlParserListener.prototype.enterQueryFetchDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#queryFetchDefinition.
|
||||
FlinkSqlParserListener.prototype.exitQueryFetchDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#insertStatement.
|
||||
FlinkSqlParserListener.prototype.enterInsertStatement = function(ctx) {
|
||||
};
|
||||
@ -470,6 +290,294 @@ FlinkSqlParserListener.prototype.exitAllValueDifinition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#queryStatement.
|
||||
FlinkSqlParserListener.prototype.enterQueryStatement = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#queryStatement.
|
||||
FlinkSqlParserListener.prototype.exitQueryStatement = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#selectStatement.
|
||||
FlinkSqlParserListener.prototype.enterSelectStatement = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#selectStatement.
|
||||
FlinkSqlParserListener.prototype.exitSelectStatement = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#projectItemDefinition.
|
||||
FlinkSqlParserListener.prototype.enterProjectItemDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#projectItemDefinition.
|
||||
FlinkSqlParserListener.prototype.exitProjectItemDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#tableExpression.
|
||||
FlinkSqlParserListener.prototype.enterTableExpression = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#tableExpression.
|
||||
FlinkSqlParserListener.prototype.exitTableExpression = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#tableReference.
|
||||
FlinkSqlParserListener.prototype.enterTableReference = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#tableReference.
|
||||
FlinkSqlParserListener.prototype.exitTableReference = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#tablePrimary.
|
||||
FlinkSqlParserListener.prototype.enterTablePrimary = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#tablePrimary.
|
||||
FlinkSqlParserListener.prototype.exitTablePrimary = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#expression.
|
||||
FlinkSqlParserListener.prototype.enterExpression = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#expression.
|
||||
FlinkSqlParserListener.prototype.exitExpression = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#logicalNot.
|
||||
FlinkSqlParserListener.prototype.enterLogicalNot = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#logicalNot.
|
||||
FlinkSqlParserListener.prototype.exitLogicalNot = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#predicated.
|
||||
FlinkSqlParserListener.prototype.enterPredicated = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#predicated.
|
||||
FlinkSqlParserListener.prototype.exitPredicated = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#logicalBinary.
|
||||
FlinkSqlParserListener.prototype.enterLogicalBinary = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#logicalBinary.
|
||||
FlinkSqlParserListener.prototype.exitLogicalBinary = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#predicate.
|
||||
FlinkSqlParserListener.prototype.enterPredicate = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#predicate.
|
||||
FlinkSqlParserListener.prototype.exitPredicate = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#valueExpressionDefault.
|
||||
FlinkSqlParserListener.prototype.enterValueExpressionDefault = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#valueExpressionDefault.
|
||||
FlinkSqlParserListener.prototype.exitValueExpressionDefault = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#comparison.
|
||||
FlinkSqlParserListener.prototype.enterComparison = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#comparison.
|
||||
FlinkSqlParserListener.prototype.exitComparison = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#arithmeticBinary.
|
||||
FlinkSqlParserListener.prototype.enterArithmeticBinary = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#arithmeticBinary.
|
||||
FlinkSqlParserListener.prototype.exitArithmeticBinary = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#arithmeticUnary.
|
||||
FlinkSqlParserListener.prototype.enterArithmeticUnary = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#arithmeticUnary.
|
||||
FlinkSqlParserListener.prototype.exitArithmeticUnary = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#simpleCase.
|
||||
FlinkSqlParserListener.prototype.enterSimpleCase = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#simpleCase.
|
||||
FlinkSqlParserListener.prototype.exitSimpleCase = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#constantDefault.
|
||||
FlinkSqlParserListener.prototype.enterConstantDefault = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#constantDefault.
|
||||
FlinkSqlParserListener.prototype.exitConstantDefault = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#parenthesizedExpression.
|
||||
FlinkSqlParserListener.prototype.enterParenthesizedExpression = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#parenthesizedExpression.
|
||||
FlinkSqlParserListener.prototype.exitParenthesizedExpression = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#last.
|
||||
FlinkSqlParserListener.prototype.enterLast = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#last.
|
||||
FlinkSqlParserListener.prototype.exitLast = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#star.
|
||||
FlinkSqlParserListener.prototype.enterStar = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#star.
|
||||
FlinkSqlParserListener.prototype.exitStar = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#subscript.
|
||||
FlinkSqlParserListener.prototype.enterSubscript = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#subscript.
|
||||
FlinkSqlParserListener.prototype.exitSubscript = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#searchedCase.
|
||||
FlinkSqlParserListener.prototype.enterSearchedCase = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#searchedCase.
|
||||
FlinkSqlParserListener.prototype.exitSearchedCase = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#position.
|
||||
FlinkSqlParserListener.prototype.enterPosition = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#position.
|
||||
FlinkSqlParserListener.prototype.exitPosition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#first.
|
||||
FlinkSqlParserListener.prototype.enterFirst = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#first.
|
||||
FlinkSqlParserListener.prototype.exitFirst = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#tableAlias.
|
||||
FlinkSqlParserListener.prototype.enterTableAlias = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#tableAlias.
|
||||
FlinkSqlParserListener.prototype.exitTableAlias = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#identifierList.
|
||||
FlinkSqlParserListener.prototype.enterIdentifierList = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#identifierList.
|
||||
FlinkSqlParserListener.prototype.exitIdentifierList = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#identifierSeq.
|
||||
FlinkSqlParserListener.prototype.enterIdentifierSeq = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#identifierSeq.
|
||||
FlinkSqlParserListener.prototype.exitIdentifierSeq = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#identifier.
|
||||
FlinkSqlParserListener.prototype.enterIdentifier = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#identifier.
|
||||
FlinkSqlParserListener.prototype.exitIdentifier = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#unquotedIdentifier.
|
||||
FlinkSqlParserListener.prototype.enterUnquotedIdentifier = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#unquotedIdentifier.
|
||||
FlinkSqlParserListener.prototype.exitUnquotedIdentifier = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#quotedIdentifierAlternative.
|
||||
FlinkSqlParserListener.prototype.enterQuotedIdentifierAlternative = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#quotedIdentifierAlternative.
|
||||
FlinkSqlParserListener.prototype.exitQuotedIdentifierAlternative = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#quotedIdentifier.
|
||||
FlinkSqlParserListener.prototype.enterQuotedIdentifier = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#quotedIdentifier.
|
||||
FlinkSqlParserListener.prototype.exitQuotedIdentifier = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#whenClause.
|
||||
FlinkSqlParserListener.prototype.enterWhenClause = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#whenClause.
|
||||
FlinkSqlParserListener.prototype.exitWhenClause = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#uidList.
|
||||
FlinkSqlParserListener.prototype.enterUidList = function(ctx) {
|
||||
};
|
||||
@ -524,195 +632,6 @@ FlinkSqlParserListener.prototype.exitKeyValueDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#expressions.
|
||||
FlinkSqlParserListener.prototype.enterExpressions = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#expressions.
|
||||
FlinkSqlParserListener.prototype.exitExpressions = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#isExpression.
|
||||
FlinkSqlParserListener.prototype.enterIsExpression = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#isExpression.
|
||||
FlinkSqlParserListener.prototype.exitIsExpression = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#notExpression.
|
||||
FlinkSqlParserListener.prototype.enterNotExpression = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#notExpression.
|
||||
FlinkSqlParserListener.prototype.exitNotExpression = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#logicalExpression.
|
||||
FlinkSqlParserListener.prototype.enterLogicalExpression = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#logicalExpression.
|
||||
FlinkSqlParserListener.prototype.exitLogicalExpression = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#predicateExpression.
|
||||
FlinkSqlParserListener.prototype.enterPredicateExpression = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#predicateExpression.
|
||||
FlinkSqlParserListener.prototype.exitPredicateExpression = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#expressionAtomPredicate.
|
||||
FlinkSqlParserListener.prototype.enterExpressionAtomPredicate = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#expressionAtomPredicate.
|
||||
FlinkSqlParserListener.prototype.exitExpressionAtomPredicate = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#inPredicate.
|
||||
FlinkSqlParserListener.prototype.enterInPredicate = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#inPredicate.
|
||||
FlinkSqlParserListener.prototype.exitInPredicate = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#subqueryComparasionPredicate.
|
||||
FlinkSqlParserListener.prototype.enterSubqueryComparasionPredicate = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#subqueryComparasionPredicate.
|
||||
FlinkSqlParserListener.prototype.exitSubqueryComparasionPredicate = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#betweenPredicate.
|
||||
FlinkSqlParserListener.prototype.enterBetweenPredicate = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#betweenPredicate.
|
||||
FlinkSqlParserListener.prototype.exitBetweenPredicate = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#binaryComparasionPredicate.
|
||||
FlinkSqlParserListener.prototype.enterBinaryComparasionPredicate = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#binaryComparasionPredicate.
|
||||
FlinkSqlParserListener.prototype.exitBinaryComparasionPredicate = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#likePredicate.
|
||||
FlinkSqlParserListener.prototype.enterLikePredicate = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#likePredicate.
|
||||
FlinkSqlParserListener.prototype.exitLikePredicate = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#unaryExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.enterUnaryExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#unaryExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.exitUnaryExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#subqueryExpessionAtom.
|
||||
FlinkSqlParserListener.prototype.enterSubqueryExpessionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#subqueryExpessionAtom.
|
||||
FlinkSqlParserListener.prototype.exitSubqueryExpessionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#existsExpessionAtom.
|
||||
FlinkSqlParserListener.prototype.enterExistsExpessionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#existsExpessionAtom.
|
||||
FlinkSqlParserListener.prototype.exitExistsExpessionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#constantExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.enterConstantExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#constantExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.exitConstantExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#binaryExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.enterBinaryExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#binaryExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.exitBinaryExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#fullColumnNameExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.enterFullColumnNameExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#fullColumnNameExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.exitFullColumnNameExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#bitExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.enterBitExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#bitExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.exitBitExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#nestedExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.enterNestedExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#nestedExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.exitNestedExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#nestedRowExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.enterNestedRowExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#nestedRowExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.exitNestedRowExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#mathExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.enterMathExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#mathExpressionAtom.
|
||||
FlinkSqlParserListener.prototype.exitMathExpressionAtom = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#logicalOperator.
|
||||
FlinkSqlParserListener.prototype.enterLogicalOperator = function(ctx) {
|
||||
};
|
||||
@ -803,5 +722,14 @@ FlinkSqlParserListener.prototype.exitBooleanLiteral = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Enter a parse tree produced by FlinkSqlParserParser#setQuantifier.
|
||||
FlinkSqlParserListener.prototype.enterSetQuantifier = function(ctx) {
|
||||
};
|
||||
|
||||
// Exit a parse tree produced by FlinkSqlParserParser#setQuantifier.
|
||||
FlinkSqlParserListener.prototype.exitSetQuantifier = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
|
||||
exports.FlinkSqlParserListener = FlinkSqlParserListener;
|
File diff suppressed because it is too large
Load Diff
@ -168,14 +168,38 @@ FlinkSqlParserVisitor.prototype.visitDropFunction = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#queryStatement.
|
||||
FlinkSqlParserVisitor.prototype.visitQueryStatement = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#insertStatement.
|
||||
FlinkSqlParserVisitor.prototype.visitInsertStatement = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#selectStatements.
|
||||
FlinkSqlParserVisitor.prototype.visitSelectStatements = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#insertPartitionDefinition.
|
||||
FlinkSqlParserVisitor.prototype.visitInsertPartitionDefinition = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#valuesDefinition.
|
||||
FlinkSqlParserVisitor.prototype.visitValuesDefinition = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#valuesRowDefinition.
|
||||
FlinkSqlParserVisitor.prototype.visitValuesRowDefinition = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#allValueDifinition.
|
||||
FlinkSqlParserVisitor.prototype.visitAllValueDifinition = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#queryStatement.
|
||||
FlinkSqlParserVisitor.prototype.visitQueryStatement = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
@ -204,116 +228,164 @@ FlinkSqlParserVisitor.prototype.visitTableReference = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#matchRecognize.
|
||||
FlinkSqlParserVisitor.prototype.visitMatchRecognize = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#tablePrimary.
|
||||
FlinkSqlParserVisitor.prototype.visitTablePrimary = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#dynamicTableOptions.
|
||||
FlinkSqlParserVisitor.prototype.visitDynamicTableOptions = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#expression.
|
||||
FlinkSqlParserVisitor.prototype.visitExpression = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#joinCondition.
|
||||
FlinkSqlParserVisitor.prototype.visitJoinCondition = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#logicalNot.
|
||||
FlinkSqlParserVisitor.prototype.visitLogicalNot = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#booleanExpression.
|
||||
FlinkSqlParserVisitor.prototype.visitBooleanExpression = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#predicated.
|
||||
FlinkSqlParserVisitor.prototype.visitPredicated = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#groupItemDefinition.
|
||||
FlinkSqlParserVisitor.prototype.visitGroupItemDefinition = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#logicalBinary.
|
||||
FlinkSqlParserVisitor.prototype.visitLogicalBinary = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#selectWithoutFromDefinition.
|
||||
FlinkSqlParserVisitor.prototype.visitSelectWithoutFromDefinition = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#predicate.
|
||||
FlinkSqlParserVisitor.prototype.visitPredicate = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#projectItem.
|
||||
FlinkSqlParserVisitor.prototype.visitProjectItem = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#valueExpressionDefault.
|
||||
FlinkSqlParserVisitor.prototype.visitValueExpressionDefault = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#queryOrderByDefinition.
|
||||
FlinkSqlParserVisitor.prototype.visitQueryOrderByDefinition = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#comparison.
|
||||
FlinkSqlParserVisitor.prototype.visitComparison = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#orderItemDefition.
|
||||
FlinkSqlParserVisitor.prototype.visitOrderItemDefition = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#arithmeticBinary.
|
||||
FlinkSqlParserVisitor.prototype.visitArithmeticBinary = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#queryLimitDefinition.
|
||||
FlinkSqlParserVisitor.prototype.visitQueryLimitDefinition = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#arithmeticUnary.
|
||||
FlinkSqlParserVisitor.prototype.visitArithmeticUnary = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#countDefinition.
|
||||
FlinkSqlParserVisitor.prototype.visitCountDefinition = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#simpleCase.
|
||||
FlinkSqlParserVisitor.prototype.visitSimpleCase = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#queryOffsetDefinition.
|
||||
FlinkSqlParserVisitor.prototype.visitQueryOffsetDefinition = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#constantDefault.
|
||||
FlinkSqlParserVisitor.prototype.visitConstantDefault = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#queryFetchDefinition.
|
||||
FlinkSqlParserVisitor.prototype.visitQueryFetchDefinition = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#parenthesizedExpression.
|
||||
FlinkSqlParserVisitor.prototype.visitParenthesizedExpression = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#insertStatement.
|
||||
FlinkSqlParserVisitor.prototype.visitInsertStatement = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#last.
|
||||
FlinkSqlParserVisitor.prototype.visitLast = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#insertPartitionDefinition.
|
||||
FlinkSqlParserVisitor.prototype.visitInsertPartitionDefinition = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#star.
|
||||
FlinkSqlParserVisitor.prototype.visitStar = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#valuesDefinition.
|
||||
FlinkSqlParserVisitor.prototype.visitValuesDefinition = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#subscript.
|
||||
FlinkSqlParserVisitor.prototype.visitSubscript = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#valuesRowDefinition.
|
||||
FlinkSqlParserVisitor.prototype.visitValuesRowDefinition = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#searchedCase.
|
||||
FlinkSqlParserVisitor.prototype.visitSearchedCase = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#allValueDifinition.
|
||||
FlinkSqlParserVisitor.prototype.visitAllValueDifinition = function(ctx) {
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#position.
|
||||
FlinkSqlParserVisitor.prototype.visitPosition = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#first.
|
||||
FlinkSqlParserVisitor.prototype.visitFirst = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#tableAlias.
|
||||
FlinkSqlParserVisitor.prototype.visitTableAlias = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#identifierList.
|
||||
FlinkSqlParserVisitor.prototype.visitIdentifierList = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#identifierSeq.
|
||||
FlinkSqlParserVisitor.prototype.visitIdentifierSeq = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#identifier.
|
||||
FlinkSqlParserVisitor.prototype.visitIdentifier = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#unquotedIdentifier.
|
||||
FlinkSqlParserVisitor.prototype.visitUnquotedIdentifier = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#quotedIdentifierAlternative.
|
||||
FlinkSqlParserVisitor.prototype.visitQuotedIdentifierAlternative = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#quotedIdentifier.
|
||||
FlinkSqlParserVisitor.prototype.visitQuotedIdentifier = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#whenClause.
|
||||
FlinkSqlParserVisitor.prototype.visitWhenClause = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
@ -354,132 +426,6 @@ FlinkSqlParserVisitor.prototype.visitKeyValueDefinition = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#expressions.
|
||||
FlinkSqlParserVisitor.prototype.visitExpressions = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#isExpression.
|
||||
FlinkSqlParserVisitor.prototype.visitIsExpression = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#notExpression.
|
||||
FlinkSqlParserVisitor.prototype.visitNotExpression = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#logicalExpression.
|
||||
FlinkSqlParserVisitor.prototype.visitLogicalExpression = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#predicateExpression.
|
||||
FlinkSqlParserVisitor.prototype.visitPredicateExpression = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#expressionAtomPredicate.
|
||||
FlinkSqlParserVisitor.prototype.visitExpressionAtomPredicate = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#inPredicate.
|
||||
FlinkSqlParserVisitor.prototype.visitInPredicate = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#subqueryComparasionPredicate.
|
||||
FlinkSqlParserVisitor.prototype.visitSubqueryComparasionPredicate = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#betweenPredicate.
|
||||
FlinkSqlParserVisitor.prototype.visitBetweenPredicate = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#binaryComparasionPredicate.
|
||||
FlinkSqlParserVisitor.prototype.visitBinaryComparasionPredicate = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#likePredicate.
|
||||
FlinkSqlParserVisitor.prototype.visitLikePredicate = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#unaryExpressionAtom.
|
||||
FlinkSqlParserVisitor.prototype.visitUnaryExpressionAtom = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#subqueryExpessionAtom.
|
||||
FlinkSqlParserVisitor.prototype.visitSubqueryExpessionAtom = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#existsExpessionAtom.
|
||||
FlinkSqlParserVisitor.prototype.visitExistsExpessionAtom = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#constantExpressionAtom.
|
||||
FlinkSqlParserVisitor.prototype.visitConstantExpressionAtom = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#binaryExpressionAtom.
|
||||
FlinkSqlParserVisitor.prototype.visitBinaryExpressionAtom = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#fullColumnNameExpressionAtom.
|
||||
FlinkSqlParserVisitor.prototype.visitFullColumnNameExpressionAtom = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#bitExpressionAtom.
|
||||
FlinkSqlParserVisitor.prototype.visitBitExpressionAtom = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#nestedExpressionAtom.
|
||||
FlinkSqlParserVisitor.prototype.visitNestedExpressionAtom = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#nestedRowExpressionAtom.
|
||||
FlinkSqlParserVisitor.prototype.visitNestedRowExpressionAtom = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#mathExpressionAtom.
|
||||
FlinkSqlParserVisitor.prototype.visitMathExpressionAtom = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#logicalOperator.
|
||||
FlinkSqlParserVisitor.prototype.visitLogicalOperator = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
@ -540,5 +486,11 @@ FlinkSqlParserVisitor.prototype.visitBooleanLiteral = function(ctx) {
|
||||
};
|
||||
|
||||
|
||||
// Visit a parse tree produced by FlinkSqlParserParser#setQuantifier.
|
||||
FlinkSqlParserVisitor.prototype.visitSetQuantifier = function(ctx) {
|
||||
return this.visitChildren(ctx);
|
||||
};
|
||||
|
||||
|
||||
|
||||
exports.FlinkSqlParserVisitor = FlinkSqlParserVisitor;
|
@ -14,6 +14,7 @@ describe('FlinkSQL Syntax Tests', () => {
|
||||
);
|
||||
`;
|
||||
const result = parser.validate(sql);
|
||||
console.log(result);
|
||||
// TODO find parser error
|
||||
expect(result.length).toBe(1);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user