_errHandler.sync(this); _alt = 1+1; do { throw new NoViableAltException(this); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,241,_ctx); } while ( _alt!=1 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ); _errHandler.reportError(this, re); _errHandler.recover(this, re);
int _alt; setState(2023); _errHandler.sync(this); switch (_input.LA(1)) { case LP_: case COMMA: _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,225,_ctx); while ( _alt!=1 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1+1 ) { _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,225,_ctx); match(ALL); setState(2021); _errHandler.sync(this); _la = _input.LA(1); if (_la==PRIVILEGES) { throw new NoViableAltException(this); _errHandler.reportError(this, re); _errHandler.recover(this, re);
dataType(); setState(1821); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,178,_ctx) ) { case 1: _errHandler.sync(this); _la = _input.LA(1); while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << AUTO_INCREMENT) | (1L << COLUMN_FORMAT) | (1L << COMMENT) | (1L << CURRENT_TIMESTAMP))) != 0) || ((((_la - 95)) & ~0x3f) == 0 && ((1L << (_la - 95)) & ((1L << (LOCALTIME - 95)) | (1L << (LOCALTIMESTAMP - 95)) | (1L << (NOW - 95)))) != 0) || _la==STORAGE || ((((_la - 276)) & ~0x3f) == 0 && ((1L << (_la - 276)) & ((1L << (KEY - 276)) | (1L << (NOT - 276)) | (1L << (NULL - 276)) | (1L << (PRIMARY - 276)) | (1L << (DEFAULT - 276)) | (1L << (ON - 276)) | (1L << (REFERENCES - 276)))) != 0) || ((((_la - 343)) & ~0x3f) == 0 && ((1L << (_la - 343)) & ((1L << (UNIQUE - 343)) | (1L << (STRING - 343)) | (1L << (NUMBER - 343)))) != 0)) { _errHandler.sync(this); _la = _input.LA(1); _errHandler.sync(this); _la = _input.LA(1); if (_la==AS || _la==GENERATED) { _errHandler.reportError(this, re); _errHandler.recover(this, re);
match(ADD); setState(1799); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,186,_ctx) ) { case 1: _errHandler.sync(this); _la = _input.LA(1); do { _errHandler.sync(this); _la = _input.LA(1); } while ( ((((_la - 183)) & ~0x3f) == 0 && ((1L << (_la - 183)) & ((1L << (KEY - 183)) | (1L << (PRIMARY - 183)) | (1L << (CHECK - 183)) | (1L << (CONSTRAINT - 183)) | (1L << (FOREIGN - 183)))) != 0) || _la==UNIQUE ); _errHandler.reportError(this, re); _errHandler.recover(this, re);
_errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,32,_ctx) ) { case 1: _errHandler.sync(this); _la = _input.LA(1); if (_la==NOT) { _errHandler.sync(this); _la = _input.LA(1); if (_la==INITIALLY) { match(INITIALLY); setState(636); _la = _input.LA(1); if ( !(_la==DEFERRED || _la==IMMEDIATE) ) { _errHandler.recoverInline(this); _errHandler.reportError(this, re); _errHandler.recover(this, re);
tableOption(); setState(2020); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,217,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { _errHandler.sync(this); _la = _input.LA(1); if (_la==COMMA) { _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,217,_ctx); _errHandler.reportError(this, re); _errHandler.recover(this, re);
relationPrimary(); setState(841); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,103,_ctx) ) { case 1: _errHandler.sync(this); _la = _input.LA(1); if (_la==AS) { identifier(); setState(839); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,102,_ctx) ) { case 1: _errHandler.reportError(this, re); _errHandler.recover(this, re);
int _alt; setState(431); _errHandler.sync(this); switch (_input.LA(1)) { case ID: enterOuterAlt(_localctx, 1); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,2,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,2,_ctx); throw new NoViableAltException(this); _errHandler.reportError(this, re); _errHandler.recover(this, re);
try { setState(738); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,86,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); match(T__1); setState(734); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__1) | (1L << T__4) | (1L << ADD) | (1L << ALL) | (1L << ANALYZE) | (1L << ANY) | (1L << ARRAY) | (1L << ASC) | (1L << AT) | (1L << BERNOULLI) | (1L << CALL) | (1L << CASCADE) | (1L << CASE) | (1L << CAST) | (1L << CATALOGS) | (1L << COLUMN) | (1L << COLUMNS) | (1L << COMMENT) | (1L << COMMIT) | (1L << COMMITTED) | (1L << CURRENT) | (1L << CURRENT_DATE) | (1L << CURRENT_PATH) | (1L << CURRENT_TIME) | (1L << CURRENT_TIMESTAMP) | (1L << CURRENT_USER) | (1L << DATA) | (1L << DATE) | (1L << DAY) | (1L << DESC) | (1L << DISTRIBUTED) | (1L << EXCLUDING) | (1L << EXISTS) | (1L << EXPLAIN) | (1L << EXTRACT) | (1L << FALSE) | (1L << FILTER))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (FIRST - 64)) | (1L << (FOLLOWING - 64)) | (1L << (FORMAT - 64)) | (1L << (FUNCTIONS - 64)) | (1L << (GRANT - 64)) | (1L << (GRANTS - 64)) | (1L << (GRAPHVIZ - 64)) | (1L << (GROUPING - 64)) | (1L << (HOUR - 64)) | (1L << (IF - 64)) | (1L << (INCLUDING - 64)) | (1L << (INPUT - 64)) | (1L << (INTERVAL - 64)) | (1L << (IO - 64)) | (1L << (ISOLATION - 64)) | (1L << (JSON - 64)) | (1L << (LAST - 64)) | (1L << (LATERAL - 64)) | (1L << (LEVEL - 64)) | (1L << (LIMIT - 64)) | (1L << (LOCALTIME - 64)) | (1L << (LOCALTIMESTAMP - 64)) | (1L << (LOGICAL - 64)) | (1L << (MAP - 64)) | (1L << (MINUTE - 64)) | (1L << (MONTH - 64)) | (1L << (NFC - 64)) | (1L << (NFD - 64)) | (1L << (NFKC - 64)) | (1L << (NFKD - 64)) | (1L << (NO - 64)) | (1L << (NORMALIZE - 64)) | (1L << (NOT - 64)) | (1L << (NULL - 64)) | (1L << (NULLIF - 64)) | (1L << (NULLS - 64)) | (1L << (ONLY - 64)) | (1L << (OPTION - 64)) | (1L << (ORDINALITY - 64)) | (1L << (OUTPUT - 64)) | (1L << (OVER - 64)) | (1L << (PARTITION - 64)) | (1L << (PARTITIONS - 64)) | (1L << (PATH - 64)) | (1L << (POSITION - 64)))) != 0) || ((((_la - 128)) & ~0x3f) == 0 && ((1L << (_la - 128)) & ((1L << (PRECEDING - 128)) | (1L << (PRIVILEGES - 128)) | (1L << (PROPERTIES - 128)) | (1L << (RANGE - 128)) | (1L << (READ - 128)) | (1L << (RENAME - 128)) | (1L << (REPEATABLE - 128)) | (1L << (REPLACE - 128)) | (1L << (RESET - 128)) | (1L << (RESTRICT - 128)) | (1L << (REVOKE - 128)) | (1L << (ROLLBACK - 128)) | (1L << (ROW - 128)) | (1L << (ROWS - 128)) | (1L << (SCHEMA - 128)) | (1L << (SCHEMAS - 128)) | (1L << (SECOND - 128)) | (1L << (SERIALIZABLE - 128)) | (1L << (SESSION - 128)) | (1L << (SET - 128)) | (1L << (SETS - 128)) | (1L << (SHOW - 128)) | (1L << (SOME - 128)) | (1L << (START - 128)) | (1L << (STATS - 128)) | (1L << (SUBSTRING - 128)) | (1L << (SYSTEM - 128)) | (1L << (TABLES - 128)) | (1L << (TABLESAMPLE - 128)) | (1L << (TEXT - 128)) | (1L << (TIME - 128)) | (1L << (TIMESTAMP - 128)) | (1L << (TO - 128)) | (1L << (TRANSACTION - 128)) | (1L << (TRUE - 128)) | (1L << (TRY_CAST - 128)) | (1L << (TYPE - 128)) | (1L << (UNBOUNDED - 128)) | (1L << (UNCOMMITTED - 128)) | (1L << (USE - 128)) | (1L << (VALIDATE - 128)) | (1L << (VERBOSE - 128)) | (1L << (VIEW - 128)) | (1L << (WORK - 128)) | (1L << (WRITE - 128)) | (1L << (YEAR - 128)) | (1L << (ZONE - 128)))) != 0) || ((((_la - 196)) & ~0x3f) == 0 && ((1L << (_la - 196)) & ((1L << (PLUS - 196)) | (1L << (MINUS - 196)) | (1L << (STRING - 196)) | (1L << (UNICODE_STRING - 196)) | (1L << (BINARY_LITERAL - 196)) | (1L << (INTEGER_VALUE - 196)) | (1L << (DECIMAL_VALUE - 196)) | (1L << (DOUBLE_VALUE - 196)) | (1L << (IDENTIFIER - 196)) | (1L << (DIGIT_IDENTIFIER - 196)) | (1L << (QUOTED_IDENTIFIER - 196)) | (1L << (BACKQUOTED_IDENTIFIER - 196)) | (1L << (DOUBLE_PRECISION - 196)))) != 0)) { expression(); setState(731); _errHandler.sync(this); _la = _input.LA(1); while (_la==T__3) { _errHandler.sync(this); _la = _input.LA(1); _errHandler.reportError(this, re); _errHandler.recover(this, re);
_errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,133,_ctx) ) { case 1: _errHandler.sync(this); _la = _input.LA(1); if (_la==ASC || _la==DESC) { _la = _input.LA(1); if ( !(_la==ASC || _la==DESC) ) { _errHandler.recoverInline(this); if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); _errHandler.reportError(this, re); _errHandler.recover(this, re);
_errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,76,_ctx) ) { case 1: _errHandler.sync(this); _la = _input.LA(1); if (_la==ASC || _la==DESC) { _la = _input.LA(1); if ( !(_la==ASC || _la==DESC) ) { _errHandler.recoverInline(this); if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); _errHandler.reportError(this, re); _errHandler.recover(this, re);
public final QueryContext query() throws RecognitionException { QueryContext _localctx = new QueryContext(_ctx, getState()); enterRule(_localctx, 8, RULE_query); int _la; try { enterOuterAlt(_localctx, 1); { setState(522); _errHandler.sync(this); _la = _input.LA(1); if (_la==WITH) { { setState(521); with(); } } setState(524); queryNoWith(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
try { setState(756); _errHandler.sync(this); switch (_input.LA(1)) { case NUMBER: enterOuterAlt(_localctx, 1); throw new NoViableAltException(this); _errHandler.reportError(this, re); _errHandler.recover(this, re);
_errHandler.sync(this); switch (_input.LA(1)) { case KEY: case PRIMARY: throw new NoViableAltException(this); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,136,_ctx) ) { case 1: _errHandler.reportError(this, re); _errHandler.recover(this, re);
try { setState(1006); _errHandler.sync(this); switch (_input.LA(1)) { case NUMBER: enterOuterAlt(_localctx, 1); throw new NoViableAltException(this); _errHandler.reportError(this, re); _errHandler.recover(this, re);
identifier(); setState(1473); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,180,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,180,_ctx); _errHandler.reportError(this, re); _errHandler.recover(this, re);
try { setState(561); _errHandler.sync(this); switch (_input.LA(1)) { case WITH: enterOuterAlt(_localctx, 1); throw new NoViableAltException(this); _errHandler.reportError(this, re); _errHandler.recover(this, re);
try { setState(1192); _errHandler.sync(this); switch (_input.LA(1)) { case NUMBER: enterOuterAlt(_localctx, 1); throw new NoViableAltException(this); _errHandler.reportError(this, re); _errHandler.recover(this, re);
try { setState(796); _errHandler.sync(this); switch (_input.LA(1)) { case NUMBER: enterOuterAlt(_localctx, 1); throw new NoViableAltException(this); _errHandler.reportError(this, re); _errHandler.recover(this, re);