public final HiveParser.tablePartition_return tablePartition() throws RecognitionException {
		HiveParser.tablePartition_return retval = new HiveParser.tablePartition_return();
		retval.start = input.LT(1);

		CommonTree root_0 = null;

		Token KW_PARTITIONED538=null;
		Token KW_BY539=null;
		Token LPAREN540=null;
		Token RPAREN542=null;
		ParserRuleReturnScope columnNameTypeList541 =null;

		CommonTree KW_PARTITIONED538_tree=null;
		CommonTree KW_BY539_tree=null;
		CommonTree LPAREN540_tree=null;
		CommonTree RPAREN542_tree=null;
		RewriteRuleTokenStream stream_RPAREN=new RewriteRuleTokenStream(adaptor,"token RPAREN");
		RewriteRuleTokenStream stream_KW_PARTITIONED=new RewriteRuleTokenStream(adaptor,"token KW_PARTITIONED");
		RewriteRuleTokenStream stream_LPAREN=new RewriteRuleTokenStream(adaptor,"token LPAREN");
		RewriteRuleTokenStream stream_KW_BY=new RewriteRuleTokenStream(adaptor,"token KW_BY");
		RewriteRuleSubtreeStream stream_columnNameTypeList=new RewriteRuleSubtreeStream(adaptor,"rule columnNameTypeList");

		 msgs.push("table partition specification"); 
		try {
			// HiveParser.g:1474:5: ( KW_PARTITIONED KW_BY LPAREN columnNameTypeList RPAREN -> ^( TOK_TABLEPARTCOLS columnNameTypeList ) )
			// HiveParser.g:1474:7: KW_PARTITIONED KW_BY LPAREN columnNameTypeList RPAREN
			{
			KW_PARTITIONED538=(Token)match(input,KW_PARTITIONED,FOLLOW_KW_PARTITIONED_in_tablePartition8426);  
			stream_KW_PARTITIONED.add(KW_PARTITIONED538);

			KW_BY539=(Token)match(input,KW_BY,FOLLOW_KW_BY_in_tablePartition8428);  
			stream_KW_BY.add(KW_BY539);

			LPAREN540=(Token)match(input,LPAREN,FOLLOW_LPAREN_in_tablePartition8430);  
			stream_LPAREN.add(LPAREN540);

			pushFollow(FOLLOW_columnNameTypeList_in_tablePartition8432);
			columnNameTypeList541=columnNameTypeList();
			state._fsp--;

			stream_columnNameTypeList.add(columnNameTypeList541.getTree());
			RPAREN542=(Token)match(input,RPAREN,FOLLOW_RPAREN_in_tablePartition8434);  
			stream_RPAREN.add(RPAREN542);

			// AST REWRITE
			// elements: columnNameTypeList
			// token labels: 
			// rule labels: retval
			// token list labels: 
			// rule list labels: 
			// wildcard labels: 
			retval.tree = root_0;
			RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.getTree():null);

			root_0 = (CommonTree)adaptor.nil();
			// 1475:5: -> ^( TOK_TABLEPARTCOLS columnNameTypeList )
			{
				// HiveParser.g:1475:8: ^( TOK_TABLEPARTCOLS columnNameTypeList )
				{
				CommonTree root_1 = (CommonTree)adaptor.nil();
				root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TOK_TABLEPARTCOLS, "TOK_TABLEPARTCOLS"), root_1);
				adaptor.addChild(root_1, stream_columnNameTypeList.nextTree());
				adaptor.addChild(root_0, root_1);
				}

			}


			retval.tree = root_0;

			}

			retval.stop = input.LT(-1);

			retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);
			adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);

			 msgs.pop(); 
		}

		catch (RecognitionException e) {
		 reportError(e);
		  throw e;
		}

		finally {
			// do for sure before leaving
		}
		return retval;
	}