/** * 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"); }
jj_consume_token(AS); jj_consume_token(INPUTFORMAT); input_format_class_name = StringLiteral(); jj_consume_token(OUTPUTFORMAT); output_format_class_name = StringLiteral(); } else { location = StringLiteral(); if (jj_2_46(2)) { jj_consume_token(PARALLELISM); tbl_properties = StringLiteral(); } else {
/** * 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"); }
/** * Parses a literal expression, allowing continued string literals. * Usually returns an SqlLiteral, but a continued string literal * is an SqlCall expression, which concatenates 2 or more string * literals; the validator reduces this. */ final public SqlNode Literal() throws ParseException { SqlNode e; if (jj_2_256(2)) { e = NumericLiteral(); } else if (jj_2_257(2)) { e = StringLiteral(); } else if (jj_2_258(2)) { e = SpecialLiteral(); } else if (jj_2_259(2)) { e = DateTimeLiteral(); } else if (jj_2_260(2)) { e = IntervalLiteral(); } else { jj_consume_token(-1); throw new ParseException(); } {if (true) return e;} throw new Error("Missing return statement in function"); }
jj_consume_token(AS); jj_consume_token(INPUTFORMAT); input_format_class_name = StringLiteral(); jj_consume_token(OUTPUTFORMAT); output_format_class_name = StringLiteral(); } else { location = StringLiteral(); if (jj_2_46(2)) { jj_consume_token(PARALLELISM); tbl_properties = StringLiteral(); } else {
/** * Parses a literal expression, allowing continued string literals. * Usually returns an SqlLiteral, but a continued string literal * is an SqlCall expression, which concatenates 2 or more string * literals; the validator reduces this. */ final public SqlNode Literal() throws ParseException { SqlNode e; if (jj_2_256(2)) { e = NumericLiteral(); } else if (jj_2_257(2)) { e = StringLiteral(); } else if (jj_2_258(2)) { e = SpecialLiteral(); } else if (jj_2_259(2)) { e = DateTimeLiteral(); } else if (jj_2_260(2)) { e = IntervalLiteral(); } else { jj_consume_token(-1); throw new ParseException(); } {if (true) return e;} throw new Error("Missing return statement in function"); }
jj_consume_token(SUBSTITUTE); jj_consume_token(LPAREN); sample = StringLiteral(); jj_consume_token(RPAREN); String sampleName = SqlLiteral.stringValue(sample);
jj_consume_token(SUBSTITUTE); jj_consume_token(LPAREN); sample = StringLiteral(); jj_consume_token(RPAREN); String sampleName = SqlLiteral.stringValue(sample);