final public SqlNode CaseExpression() throws ParseException { final Span whenSpan = Span.of(); final Span thenSpan = Span.of(); final Span s; SqlNode e; while (true) { jj_consume_token(WHEN); whenSpan.add(this); e = ExpressionCommaList(s, ExprContext.ACCEPT_SUB_QUERY); if (((SqlNodeList) e).size() == 1) { thenSpan.add(this); e = Expression(ExprContext.ACCEPT_SUB_QUERY); thenList.add(e); {if (true) return SqlCase.createSwitched(s.end(this), caseIdentifier, new SqlNodeList(whenList, whenSpan.addAll(whenList).pos()), new SqlNodeList(thenList, thenSpan.addAll(thenList).pos()), elseClause);} throw new Error("Missing return statement in function");
final public SqlNode MeasureColumn() throws ParseException { SqlNode e; SqlIdentifier alias; e = Expression(ExprContext.ACCEPT_NON_QUERY); jj_consume_token(AS); alias = SimpleIdentifier(); {if (true) return SqlStdOperatorTable.AS.createCall(Span.of(e).end(this), e, alias);} throw new Error("Missing return statement in function"); }
final public SqlNodeList SubsetDefinitionCommaList(Span s) throws ParseException { SqlNode e; final List<SqlNode> eList = new ArrayList<SqlNode>(); e = SubsetDefinition(); eList.add(e); label_19: while (true) { if (jj_2_233(2)) { ; } else { break label_19; } jj_consume_token(COMMA); e = SubsetDefinition(); eList.add(e); } {if (true) return new SqlNodeList(eList, s.addAll(eList).pos());} throw new Error("Missing return statement in function"); }
final public SqlCall MatchRecognizeNavigationLogical() throws ParseException { final Span s = Span.of(); SqlCall func; final SqlOperator funcOp; if (jj_2_570(2)) { jj_consume_token(RUNNING); runningOp = SqlStdOperatorTable.RUNNING; s.add(this); } else if (jj_2_571(2)) { jj_consume_token(FINAL); runningOp = SqlStdOperatorTable.FINAL; s.add(this); } else { runningOp = null; throw new ParseException(); s.add(this); jj_consume_token(LPAREN); arg0 = Expression(ExprContext.ACCEPT_SUB_QUERY); func = funcOp.createCall(s.end(this), arg0, arg1); if (runningOp != null) { {if (true) return runningOp.createCall(s.end(this), func);} } else { {if (true) return func;}
{if (true) return new SqlDescribeSchema(s.end(id), id);} } else if (jj_2_77(2147483647)) { if (jj_2_73(2)) { column = null; {if (true) return new SqlDescribeTable(s.add(table).addIf(column).pos(), table, column);} } else if (jj_2_78(2)) { final SqlExplain.Depth depth = SqlExplain.Depth.PHYSICAL; final SqlExplainFormat format = SqlExplainFormat.TEXT; {if (true) return new SqlExplain(s.end(stmt), stmt, detailLevel.symbol(SqlParserPos.ZERO),
s = span(); table = CompoundIdentifier(); targetColumnList = new SqlNodeList(s.pos()); sourceExpressionList = new SqlNodeList(s.pos()); if (jj_2_91(2)) { if (jj_2_90(2)) { {if (true) return new SqlUpdate(s.addAll(targetColumnList) .addAll(sourceExpressionList).addIf(condition).pos(), table, targetColumnList, sourceExpressionList, condition, null, alias);} throw new Error("Missing return statement in function");
s.clear().add(this); nodeList = ParenthesizedQueryOrCommaList(ExprContext.ACCEPT_NONCURSOR); list.add(new SqlParserUtil.ToTreeListItem(op, s.pos())); s.add(nodeList); jj_consume_token(BETWEEN); op = SqlStdOperatorTable.NOT_BETWEEN; s.clear().add(this); if (jj_2_250(2)) { if (jj_2_248(2)) { jj_consume_token(BETWEEN); op = SqlStdOperatorTable.BETWEEN; s.clear().add(this); if (jj_2_253(2)) { if (jj_2_251(2)) { list.add(new SqlParserUtil.ToTreeListItem(op, s.pos())); list.add(e); } else if (jj_2_264(2)) { checkNonQueryExpression(exprContext); s.clear().add(this); if (jj_2_258(2)) { jj_consume_token(NOT); list.add(new SqlParserUtil.ToTreeListItem(op, s.pos())); list.addAll(list2); if (jj_2_261(2)) { jj_consume_token(ESCAPE);
if (jj_2_312(2)) { jj_consume_token(SET); s.add(this); name = CompoundIdentifier(); jj_consume_token(EQ); throw new ParseException(); {if (true) return new SqlSetOption(s.end(val), scope, name, val);} } else if (jj_2_313(2)) { jj_consume_token(RESET); s.add(this); if (jj_2_310(2)) { name = CompoundIdentifier(); throw new ParseException(); {if (true) return new SqlSetOption(s.end(name), scope, name, null);} } else { jj_consume_token(-1);
/** * List of compound identifiers in parentheses. The position extends from the * open parenthesis to the close parenthesis. */ final public Pair<SqlNodeList, SqlNodeList> ParenthesizedCompoundIdentifierList() throws ParseException { final Span s; final List<SqlNode> list = new ArrayList<SqlNode>(); final List<SqlNode> extendList = new ArrayList<SqlNode>(); jj_consume_token(LPAREN); s = span(); CompoundIdentifierTypeCommaList(list, extendList); jj_consume_token(RPAREN); {if (true) return Pair.of(new SqlNodeList(list, s.end(this)), new SqlNodeList(extendList, s.end(this)));} throw new Error("Missing return statement in function"); }
Span span() throws ParseException { return Span.of(getPos()); }
throw new ParseException(); s.add(this); if (jj_2_437(2)) { jj_consume_token(VARYING); } else if (jj_2_454(2)) { jj_consume_token(BINARY); s.add(this); if (jj_2_443(2)) { jj_consume_token(VARYING); } else if (jj_2_460(2)) { jj_consume_token(DOUBLE); s.add(this); if (jj_2_444(2)) { jj_consume_token(PRECISION);
final public SqlNodeList MeasureColumnCommaList(Span s) throws ParseException { SqlNode e; final List<SqlNode> eList = new ArrayList<SqlNode>(); e = MeasureColumn(); eList.add(e); label_15: while (true) { if (jj_2_214(2)) { ; } else { break label_15; } jj_consume_token(COMMA); e = MeasureColumn(); eList.add(e); } {if (true) return new SqlNodeList(eList, s.addAll(eList).pos());} throw new Error("Missing return statement in function"); }
valueList = ParenthesizedQueryOrCommaList(ExprContext.ACCEPT_NONCURSOR); jj_consume_token(RPAREN); s.add(this); } else if (jj_2_159(3)) { if (jj_2_157(2)) { s = span(); } else { s = Span.of(); s = Span.of(value); valueList = new SqlNodeList(Collections.singletonList(value), value.getParserPosition()); {if (true) return SqlStdOperatorTable.ROW.createCall(s.end(valueList), valueList.toArray());} throw new Error("Missing return statement in function");
{if (true) return new SqlDescribeSchema(s.end(id), id);} } else if (jj_2_77(2147483647)) { if (jj_2_73(2)) { column = null; {if (true) return new SqlDescribeTable(s.add(table).addIf(column).pos(), table, column);} } else if (jj_2_78(2)) { final SqlExplain.Depth depth = SqlExplain.Depth.PHYSICAL; final SqlExplainFormat format = SqlExplainFormat.TEXT; {if (true) return new SqlExplain(s.end(stmt), stmt, detailLevel.symbol(SqlParserPos.ZERO),
final public SqlNode PatternTerm() throws ParseException { SqlNode left; SqlNode right; left = PatternFactor(); label_17: while (true) { if (jj_2_216(2)) { ; } else { break label_17; } right = PatternFactor(); left = SqlStdOperatorTable.PATTERN_CONCAT.createCall( Span.of(left).end(right), left, right); } {if (true) return left;} throw new Error("Missing return statement in function"); }
final public SqlNode PatternDefinition() throws ParseException { final SqlNode var; final SqlNode e; var = SimpleIdentifier(); jj_consume_token(AS); e = Expression(ExprContext.ACCEPT_SUB_QUERY); {if (true) return SqlStdOperatorTable.AS.createCall(Span.of(var, e).pos(), e, var);} throw new Error("Missing return statement in function"); }