/** * Parses a list of expressions separated by commas. */ final public SqlNodeList ExpressionCommaList(SqlParserPos pos, ExprContext exprContext) throws ParseException { List<SqlNode> list; SqlNode e; e = Expression(exprContext); if (pos == null) { pos = getPos(); } pos = pos.plus(getPos()); list = startList(e); label_12: while (true) { if (jj_2_162(2)) { ; } else { break label_12; } jj_consume_token(COMMA); e = Expression(ExprContext.ACCEPT_SUB_QUERY); list.add(e); pos = pos.plus(getPos()); } {if (true) return new SqlNodeList(list, pos);} throw new Error("Missing return statement in function"); }
/** * Parses a call to TIMESTAMPDIFF. */ final public SqlCall TimestampDiffFunctionCall() throws ParseException { List<SqlNode> args; SqlNode e; SqlParserPos pos; TimeUnit interval; SqlNode node; jj_consume_token(TIMESTAMPDIFF); pos = getPos(); jj_consume_token(LPAREN); interval = TimestampInterval(); args = startList(SqlLiteral.createSymbol(interval, getPos())); jj_consume_token(COMMA); e = Expression(ExprContext.ACCEPT_SUB_QUERY); args.add(e); jj_consume_token(COMMA); e = Expression(ExprContext.ACCEPT_SUB_QUERY); args.add(e); jj_consume_token(RPAREN); {if (true) return SqlStdOperatorTable.TIMESTAMP_DIFF.createCall( pos.plus(getPos()), SqlParserUtil.toNodeArray(args));} throw new Error("Missing return statement in function"); }
/** * Parses a call to TIMESTAMPADD. */ final public SqlCall TimestampAddFunctionCall() throws ParseException { List<SqlNode> args; SqlNode e; SqlParserPos pos; TimeUnit interval; SqlNode node; jj_consume_token(TIMESTAMPADD); pos = getPos(); jj_consume_token(LPAREN); interval = TimestampInterval(); args = startList(SqlLiteral.createSymbol(interval, getPos())); jj_consume_token(COMMA); e = Expression(ExprContext.ACCEPT_SUB_QUERY); args.add(e); jj_consume_token(COMMA); e = Expression(ExprContext.ACCEPT_SUB_QUERY); args.add(e); jj_consume_token(RPAREN); {if (true) return SqlStdOperatorTable.TIMESTAMP_ADD.createCall( pos.plus(getPos()), SqlParserUtil.toNodeArray(args));} throw new Error("Missing return statement in function"); }
list = startList(e); label_14: while (true) {
list = startList(e); label_15: while (true) {
list = startList(e); label_1: while (true) {
pos = getPos(); e.setDeclName(id); list = startList(e); label_13: while (true) {
/** * Parses a list of expressions separated by commas. */ final public SqlNodeList ExpressionCommaList(SqlParserPos pos, ExprContext exprContext) throws ParseException { List<SqlNode> list; SqlNode e; e = Expression(exprContext); if (pos == null) { pos = getPos(); } pos = pos.plus(getPos()); list = startList(e); label_12: while (true) { if (jj_2_162(2)) { ; } else { break label_12; } jj_consume_token(COMMA); e = Expression(ExprContext.ACCEPT_SUB_QUERY); list.add(e); pos = pos.plus(getPos()); } {if (true) return new SqlNodeList(list, pos);} throw new Error("Missing return statement in function"); }
/** * Parses a call to TIMESTAMPADD. */ final public SqlCall TimestampAddFunctionCall() throws ParseException { List<SqlNode> args; SqlNode e; SqlParserPos pos; TimeUnit interval; SqlNode node; jj_consume_token(TIMESTAMPADD); pos = getPos(); jj_consume_token(LPAREN); interval = TimestampInterval(); args = startList(SqlLiteral.createSymbol(interval, getPos())); jj_consume_token(COMMA); e = Expression(ExprContext.ACCEPT_SUB_QUERY); args.add(e); jj_consume_token(COMMA); e = Expression(ExprContext.ACCEPT_SUB_QUERY); args.add(e); jj_consume_token(RPAREN); {if (true) return SqlStdOperatorTable.TIMESTAMP_ADD.createCall( pos.plus(getPos()), SqlParserUtil.toNodeArray(args));} throw new Error("Missing return statement in function"); }
/** * Parses a call to TIMESTAMPDIFF. */ final public SqlCall TimestampDiffFunctionCall() throws ParseException { List<SqlNode> args; SqlNode e; SqlParserPos pos; TimeUnit interval; SqlNode node; jj_consume_token(TIMESTAMPDIFF); pos = getPos(); jj_consume_token(LPAREN); interval = TimestampInterval(); args = startList(SqlLiteral.createSymbol(interval, getPos())); jj_consume_token(COMMA); e = Expression(ExprContext.ACCEPT_SUB_QUERY); args.add(e); jj_consume_token(COMMA); e = Expression(ExprContext.ACCEPT_SUB_QUERY); args.add(e); jj_consume_token(RPAREN); {if (true) return SqlStdOperatorTable.TIMESTAMP_DIFF.createCall( pos.plus(getPos()), SqlParserUtil.toNodeArray(args));} throw new Error("Missing return statement in function"); }
args = startList(e); label_22: while (true) {
jj_consume_token(LPAREN); e = Expression(ExprContext.ACCEPT_SUB_QUERY); args = startList(e); if (jj_2_507(2)) { jj_consume_token(TO);
list = startList(e); label_14: while (true) {
list = startList(e); label_15: while (true) {
list = startList(e); label_1: while (true) {
pos = getPos(); e.setDeclName(id); list = startList(e); label_13: while (true) {
starPos = getPos(); jj_consume_token(RPAREN); args = startList(SqlIdentifier.star(starPos)); pos = pos.plus(getPos()); } else if (jj_2_501(2)) {
args = startList(e); label_22: while (true) {
jj_consume_token(LPAREN); e = Expression(ExprContext.ACCEPT_SUB_QUERY); args = startList(e); if (jj_2_507(2)) { jj_consume_token(TO);
starPos = getPos(); jj_consume_token(RPAREN); args = startList(SqlIdentifier.star(starPos)); pos = pos.plus(getPos()); } else if (jj_2_501(2)) {