/** * Parses a call to TIMESTAMPDIFF. */ final public SqlCall TimestampDiffFunctionCall() throws ParseException { List<SqlNode> args; SqlNode e; final Span s; TimeUnit interval; SqlNode node; jj_consume_token(TIMESTAMPDIFF); s = span(); 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( s.end(this), 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; final Span s; TimeUnit interval; SqlNode node; jj_consume_token(TIMESTAMPADD); s = span(); 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( s.end(this), 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; final Span s; TimeUnit interval; SqlNode node; jj_consume_token(TIMESTAMPDIFF); s = span(); 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( s.end(this), 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; final Span s; TimeUnit interval; SqlNode node; jj_consume_token(TIMESTAMPADD); s = span(); 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( s.end(this), 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; final Span s; TimeUnit interval; SqlNode node; jj_consume_token(TIMESTAMPDIFF); s = span(); 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 ("" != null) return SqlStdOperatorTable.TIMESTAMP_DIFF.createCall( s.end(this), 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; final Span s; TimeUnit interval; SqlNode node; jj_consume_token(TIMESTAMPADD); s = span(); 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 ("" != null) return SqlStdOperatorTable.TIMESTAMP_ADD.createCall( s.end(this), args);} throw new Error("Missing return statement in function"); }
/** * Creates a parse-tree node representing an occurrence of this symbol at * a particular position in the parsed text. */ public SqlLiteral symbol(SqlParserPos pos) { return SqlLiteral.createSymbol(this, pos); } }
/** * Creates a parse-tree node representing an occurrence of this keyword * at a particular position in the parsed text. */ public SqlLiteral symbol(SqlParserPos pos) { return SqlLiteral.createSymbol(this, pos); }
/** * Creates a parse-tree node representing an occurrence of this keyword * at a particular position in the parsed text. */ public SqlLiteral symbol(SqlParserPos pos) { return SqlLiteral.createSymbol(this, pos); } }
/** * Creates a parse-tree node representing an occurrence of this bound * type at a particular position in the parsed text. */ public SqlNode symbol(SqlParserPos pos) { return SqlLiteral.createSymbol(this, pos); } }
/** * Creates a parse-tree node representing an occurrence of this join * type at a particular position in the parsed text. */ public SqlLiteral symbol(SqlParserPos pos) { return SqlLiteral.createSymbol(this, pos); } }
/** * Creates a parse-tree node representing an occurrence of this symbol * at a particular position in the parsed text. */ public SqlLiteral symbol(SqlParserPos pos) { return SqlLiteral.createSymbol(this, pos); } }
/** * Creates a parse-tree node representing an occurrence of this symbol * at a particular position in the parsed text. */ public SqlLiteral symbol(SqlParserPos pos) { return SqlLiteral.createSymbol(this, pos); } }
/** * Creates a parse-tree node representing an occurrence of this join * type at a particular position in the parsed text. */ public SqlLiteral symbol(SqlParserPos pos) { return SqlLiteral.createSymbol(this, pos); } }
/** * Creates a parse-tree node representing an occurrence of this symbol * at a particular position in the parsed text. */ public SqlLiteral symbol(SqlParserPos pos) { return SqlLiteral.createSymbol(this, pos); } }
/** * Creates a parse-tree node representing an occurrence of this symbol at * a particular position in the parsed text. */ public SqlLiteral symbol(SqlParserPos pos) { return SqlLiteral.createSymbol(this, pos); } }
/** * Creates a parse-tree node representing an occurrence of this keyword * at a particular position in the parsed text. */ public SqlLiteral symbol(SqlParserPos pos) { return SqlLiteral.createSymbol(this, pos); } }
/** * Creates a parse-tree node representing an occurrence of this * condition type keyword at a particular position in the parsed * text. */ public SqlLiteral symbol(SqlParserPos pos) { return SqlLiteral.createSymbol(this, pos); }
/** * Creates a parse-tree node representing an occurrence of this * condition type keyword at a particular position in the parsed * text. */ public SqlLiteral symbol(SqlParserPos pos) { return SqlLiteral.createSymbol(this, pos); } }
@Override public List<SqlNode> getOperandList() { List<SqlNode> operands = new ArrayList<>(); operands.addAll(ImmutableList.of(tblName, isRaw, displayList, dimensionList, measureList, distributionList, partitionList, sortList, SqlLiteral.createSymbol(partitionDistributionStrategy, SqlParserPos.ZERO))); operands.add(name); return operands; }