/** * Parses a comma-separated list of compound identifiers. */ final public void CompoundIdentifierCommaList(List<SqlNode> list) throws ParseException { SqlIdentifier id; id = CompoundIdentifier(); list.add(id); label_25: while (true) { if (jj_2_363(2)) { ; } else { break label_25; } jj_consume_token(COMMA); id = CompoundIdentifier(); list.add(id); } }
/** * Parses an explicit TABLE t reference. */ final public SqlNode ExplicitTable(SqlParserPos pos) throws ParseException { SqlNode tableRef; jj_consume_token(TABLE); tableRef = CompoundIdentifier(); {if (true) return SqlStdOperatorTable.EXPLICIT_TABLE.createCall(pos, tableRef);} throw new Error("Missing return statement in function"); }
/** * Parses a comma-separated list of compound identifiers. */ final public void CompoundIdentifierCommaList(List<SqlNode> list) throws ParseException { SqlIdentifier id; id = CompoundIdentifier(); list.add(id); label_25: while (true) { if (jj_2_363(2)) { ; } else { break label_25; } jj_consume_token(COMMA); id = CompoundIdentifier(); list.add(id); } }
/** * Parses an explicit TABLE t reference. */ final public SqlNode ExplicitTable(SqlParserPos pos) throws ParseException { SqlNode tableRef; jj_consume_token(TABLE); tableRef = CompoundIdentifier(); {if (true) return SqlStdOperatorTable.EXPLICIT_TABLE.createCall(pos, tableRef);} throw new Error("Missing return statement in function"); }
/** * Parses the name of a function (either a compound identifier or * a reserved word which can be used as a function name). */ final public SqlIdentifier FunctionName() throws ParseException { SqlIdentifier qualifiedName; if (jj_2_511(2)) { qualifiedName = CompoundIdentifier(); } else if (jj_2_512(2)) { qualifiedName = ReservedFunctionName(); } else { jj_consume_token(-1); throw new ParseException(); } {if (true) return qualifiedName;} throw new Error("Missing return statement in function"); }
/** * Parses the name of a function (either a compound identifier or * a reserved word which can be used as a function name). */ final public SqlIdentifier FunctionName() throws ParseException { SqlIdentifier qualifiedName; if (jj_2_511(2)) { qualifiedName = CompoundIdentifier(); } else if (jj_2_512(2)) { qualifiedName = ReservedFunctionName(); } else { jj_consume_token(-1); throw new ParseException(); } {if (true) return qualifiedName;} throw new Error("Missing return statement in function"); }
final List<SqlNode> list = Lists.newArrayList(); final SqlParserPos pos; name = CompoundIdentifier(); pos = getPos(); jj_consume_token(LPAREN);
/** * CREATE FUNCTION functionname AS 'classname' */ final public SqlNode SqlCreateFunction() throws ParseException { SqlParserPos pos; SqlIdentifier functionName; SqlNode className; SqlNode jarName = null; jj_consume_token(CREATE); pos = getPos(); jj_consume_token(FUNCTION); functionName = CompoundIdentifier(); jj_consume_token(AS); className = StringLiteral(); if (jj_2_49(2)) { jj_consume_token(USING); jj_consume_token(JAR); jarName = StringLiteral(); } else { ; } {if (true) return new SqlCreateFunction(pos, functionName, className, jarName);} throw new Error("Missing return statement in function"); }
table = CompoundIdentifier(); pos = getPos(); if (jj_2_82(2)) {
final public SqlCall SequenceExpression() throws ParseException { final SqlParserPos pos; final SqlOperator f; final SqlNode sequenceRef; if (jj_2_245(2)) { jj_consume_token(NEXT); f = SqlStdOperatorTable.NEXT_VALUE; pos = getPos(); } else if (jj_2_246(2)) { jj_consume_token(CURRENT); f = SqlStdOperatorTable.CURRENT_VALUE; pos = getPos(); } else { jj_consume_token(-1); throw new ParseException(); } jj_consume_token(VALUE); jj_consume_token(FOR); sequenceRef = CompoundIdentifier(); {if (true) return f.createCall(pos, sequenceRef);} throw new Error("Missing return statement in function"); }
jj_consume_token(SET); pos = pos == null ? getPos() : pos; name = CompoundIdentifier(); jj_consume_token(EQ); if (jj_2_247(2)) { pos = pos == null ? getPos() : pos; if (jj_2_250(2)) { name = CompoundIdentifier(); } else if (jj_2_251(2)) { jj_consume_token(ALL);
pos = getPos(); jj_consume_token(FROM); table = CompoundIdentifier();
final List<SqlNode> list = Lists.newArrayList(); final SqlParserPos pos; name = CompoundIdentifier(); pos = getPos(); jj_consume_token(LPAREN);
/** * CREATE FUNCTION functionname AS 'classname' */ final public SqlNode SqlCreateFunction() throws ParseException { SqlParserPos pos; SqlIdentifier functionName; SqlNode className; SqlNode jarName = null; jj_consume_token(CREATE); pos = getPos(); jj_consume_token(FUNCTION); functionName = CompoundIdentifier(); jj_consume_token(AS); className = StringLiteral(); if (jj_2_49(2)) { jj_consume_token(USING); jj_consume_token(JAR); jarName = StringLiteral(); } else { ; } {if (true) return new SqlCreateFunction(pos, functionName, className, jarName);} throw new Error("Missing return statement in function"); }
table = CompoundIdentifier(); pos = getPos(); if (jj_2_82(2)) {
final public SqlCall SequenceExpression() throws ParseException { final SqlParserPos pos; final SqlOperator f; final SqlNode sequenceRef; if (jj_2_245(2)) { jj_consume_token(NEXT); f = SqlStdOperatorTable.NEXT_VALUE; pos = getPos(); } else if (jj_2_246(2)) { jj_consume_token(CURRENT); f = SqlStdOperatorTable.CURRENT_VALUE; pos = getPos(); } else { jj_consume_token(-1); throw new ParseException(); } jj_consume_token(VALUE); jj_consume_token(FOR); sequenceRef = CompoundIdentifier(); {if (true) return f.createCall(pos, sequenceRef);} throw new Error("Missing return statement in function"); }
jj_consume_token(SET); pos = pos == null ? getPos() : pos; name = CompoundIdentifier(); jj_consume_token(EQ); if (jj_2_247(2)) { pos = pos == null ? getPos() : pos; if (jj_2_250(2)) { name = CompoundIdentifier(); } else if (jj_2_251(2)) { jj_consume_token(ALL);
pos = getPos(); jj_consume_token(FROM); table = CompoundIdentifier();
jj_consume_token(MERGE); jj_consume_token(INTO); table = CompoundIdentifier(); mergePos = getPos(); if (jj_2_93(2)) {
SqlParserPos pos; jj_consume_token(UPDATE); table = CompoundIdentifier(); pos = getPos(); targetColumnList = new SqlNodeList(pos);