/** * Parses a comma-separated list of simple identifiers. */ final public void SimpleIdentifierCommaList(List<SqlNode> list) throws ParseException { SqlIdentifier id; id = SimpleIdentifier(); list.add(id); label_23: while (true) { if (jj_2_360(2)) { ; } else { break label_23; } jj_consume_token(COMMA); id = SimpleIdentifier(); list.add(id); } }
final public void ColumnType(List<SqlNode> list) throws ParseException { SqlIdentifier name; SqlDataTypeSpec type; name = SimpleIdentifier(); type = DataType(); if (jj_2_147(2)) { jj_consume_token(NOT); jj_consume_token(NULL); type = type.withNullable(false); } else { ; } list.add(name); list.add(type); }
/** * Parses a comma-separated list of simple identifiers. */ final public void SimpleIdentifierCommaList(List<SqlNode> list) throws ParseException { SqlIdentifier id; id = SimpleIdentifier(); list.add(id); label_23: while (true) { if (jj_2_360(2)) { ; } else { break label_23; } jj_consume_token(COMMA); id = SimpleIdentifier(); list.add(id); } }
final public SqlWithItem WithItem() throws ParseException { SqlIdentifier id; SqlNodeList columnList = null; SqlNode definition; id = SimpleIdentifier(); if (jj_2_194(2)) { columnList = ParenthesizedSimpleIdentifierList(); } else { ; } jj_consume_token(AS); definition = ParenthesizedExpression(ExprContext.ACCEPT_QUERY); {if (true) return new SqlWithItem(id.getParserPosition(), id, columnList, definition);} throw new Error("Missing return statement in function"); }
final public void ColumnType(List<SqlNode> list) throws ParseException { SqlIdentifier name; SqlDataTypeSpec type; name = SimpleIdentifier(); type = DataType(); if (jj_2_147(2)) { jj_consume_token(NOT); jj_consume_token(NULL); type = type.withNullable(false); } else { ; } list.add(name); list.add(type); }
if (jj_2_165(2)) { jj_consume_token(WINDOW); id = SimpleIdentifier(); jj_consume_token(AS); e = WindowSpecification(); id = SimpleIdentifier(); jj_consume_token(AS); e = WindowSpecification();
/** * Parses one item in a select list. */ final public SqlNode SelectItem() throws ParseException { SqlNode e; SqlIdentifier id; SqlParserPos pos; e = SelectExpression(); if (jj_2_105(2)) { if (jj_2_104(2)) { jj_consume_token(AS); } else { ; } id = SimpleIdentifier(); pos = e.getParserPosition().plus(getPos()); e = SqlStdOperatorTable.AS.createCall(pos, e, id); } else { ; } {if (true) return e;} throw new Error("Missing return statement in function"); }
final public void Arg(List list, ExprContext exprContext) throws ParseException { SqlIdentifier name = null; SqlNode e = null; if (jj_2_25(2)) { name = SimpleIdentifier(); jj_consume_token(NAMED_ARGUMENT_ASSIGNMENT); } else { ; } if (jj_2_26(2)) { jj_consume_token(DEFAULT_KW); e = SqlStdOperatorTable.DEFAULT.createCall(getPos()); } else if (jj_2_27(2)) { e = Expression(exprContext); } else { jj_consume_token(-1); throw new ParseException(); } if (e != null) { if (name != null) { e = SqlStdOperatorTable.ARGUMENT_ASSIGNMENT.createCall( name.getParserPosition().plus(e.getParserPosition()), e, name); } list.add(e); } }
final public SqlWithItem WithItem() throws ParseException { SqlIdentifier id; SqlNodeList columnList = null; SqlNode definition; id = SimpleIdentifier(); if (jj_2_194(2)) { columnList = ParenthesizedSimpleIdentifierList(); } else { ; } jj_consume_token(AS); definition = ParenthesizedExpression(ExprContext.ACCEPT_QUERY); {if (true) return new SqlWithItem(id.getParserPosition(), id, columnList, definition);} throw new Error("Missing return statement in function"); }
jj_consume_token(UPDATE); jj_consume_token(SET); id = SimpleIdentifier(); pos = getPos(); updateColumnList = new SqlNodeList(pos); id = SimpleIdentifier(); updateColumnList.add(id); jj_consume_token(EQ);
ColumnConstraint constraint = null; SqlMonotonicity monotonicity = SqlMonotonicity.NOT_MONOTONIC; name = SimpleIdentifier(); pos = getPos(); type = DataType();
if (jj_2_165(2)) { jj_consume_token(WINDOW); id = SimpleIdentifier(); jj_consume_token(AS); e = WindowSpecification(); id = SimpleIdentifier(); jj_consume_token(AS); e = WindowSpecification();
alias = SimpleIdentifier(); } else {
/** * Parses one item in a select list. */ final public SqlNode SelectItem() throws ParseException { SqlNode e; SqlIdentifier id; SqlParserPos pos; e = SelectExpression(); if (jj_2_105(2)) { if (jj_2_104(2)) { jj_consume_token(AS); } else { ; } id = SimpleIdentifier(); pos = e.getParserPosition().plus(getPos()); e = SqlStdOperatorTable.AS.createCall(pos, e, id); } else { ; } {if (true) return e;} throw new Error("Missing return statement in function"); }
val = Literal(); } else if (jj_2_248(2)) { val = SimpleIdentifier(); } else if (jj_2_249(2)) { jj_consume_token(ON);
final public void Arg(List list, ExprContext exprContext) throws ParseException { SqlIdentifier name = null; SqlNode e = null; if (jj_2_25(2)) { name = SimpleIdentifier(); jj_consume_token(NAMED_ARGUMENT_ASSIGNMENT); } else { ; } if (jj_2_26(2)) { jj_consume_token(DEFAULT_KW); e = SqlStdOperatorTable.DEFAULT.createCall(getPos()); } else if (jj_2_27(2)) { e = Expression(exprContext); } else { jj_consume_token(-1); throw new ParseException(); } if (e != null) { if (name != null) { e = SqlStdOperatorTable.ARGUMENT_ASSIGNMENT.createCall( name.getParserPosition().plus(e.getParserPosition()), e, name); } list.add(e); } }
jj_consume_token(UPDATE); jj_consume_token(SET); id = SimpleIdentifier(); pos = getPos(); updateColumnList = new SqlNodeList(pos); id = SimpleIdentifier(); updateColumnList.add(id); jj_consume_token(EQ);
ColumnConstraint constraint = null; SqlMonotonicity monotonicity = SqlMonotonicity.NOT_MONOTONIC; name = SimpleIdentifier(); pos = getPos(); type = DataType();
alias = SimpleIdentifier(); } else {
val = Literal(); } else if (jj_2_248(2)) { val = SimpleIdentifier(); } else if (jj_2_249(2)) { jj_consume_token(ON);