protected SQLTableSource primaryTableSourceRest(SQLTableSource tableSource) { parseIndexHintList(tableSource); if (lexer.token() == Token.PARTITION) { lexer.nextToken(); accept(Token.LPAREN); this.exprParser.names(((SQLExprTableSource) tableSource).getPartitions(), tableSource); accept(Token.RPAREN); } return tableSource; }
protected SQLTableSource parseTableSourceRest(SQLTableSource tableSource) { if (lexer.identifierEquals(FnvHash.Constants.USING)) { return tableSource; } parseIndexHintList(tableSource); if (lexer.token() == Token.PARTITION) { lexer.nextToken(); accept(Token.LPAREN); this.exprParser.names(((SQLExprTableSource) tableSource).getPartitions(), tableSource); accept(Token.RPAREN); } return super.parseTableSourceRest(tableSource); }
public boolean visit(SQLExprTableSource x) { printTableSourceExpr(x.getExpr()); String alias = x.getAlias(); if (alias != null) { print(' '); print0(alias); } for (int i = 0; i < x.getHintsSize(); ++i) { print(' '); x.getHints().get(i).accept(this); } if (x.getPartitionSize() > 0) { print0(ucase ? " PARTITION (" : " partition ("); printlnAndAccept(x.getPartitions(), ", "); print(')'); } return false; }
protected SQLTableSource primaryTableSourceRest(SQLTableSource tableSource) { parseIndexHintList(tableSource); if (lexer.token() == Token.PARTITION) { lexer.nextToken(); accept(Token.LPAREN); this.exprParser.names(((SQLExprTableSource) tableSource).getPartitions(), tableSource); accept(Token.RPAREN); } return tableSource; }
protected SQLTableSource parseTableSourceRest(SQLTableSource tableSource) { if (lexer.identifierEquals(FnvHash.Constants.USING)) { return tableSource; } parseIndexHintList(tableSource); if (lexer.token() == Token.PARTITION) { lexer.nextToken(); accept(Token.LPAREN); this.exprParser.names(((SQLExprTableSource) tableSource).getPartitions(), tableSource); accept(Token.RPAREN); } return super.parseTableSourceRest(tableSource); }
public boolean visit(SQLExprTableSource x) { printTableSourceExpr(x.getExpr()); String alias = x.getAlias(); if (alias != null) { print(' '); print0(alias); } for (int i = 0; i < x.getHintsSize(); ++i) { print(' '); x.getHints().get(i).accept(this); } if (x.getPartitionSize() > 0) { print0(ucase ? " PARTITION (" : " partition ("); printlnAndAccept(x.getPartitions(), ", "); print(')'); } return false; }
public boolean visit(SQLExprTableSource x) { processTableName(x.getExpr()); if (x.getAlias() != null) { print(' '); print0(x.getAlias()); } for (int i = 0; i < x.getHintsSize(); ++i) { print(' '); x.getHints().get(i).accept(this); } if (x.getPartitionSize() > 0) { print0(ucase ? " PARTITION (" : " partition ("); printlnAndAccept(x.getPartitions(), ", "); print(')'); } return false; } }