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

		CommonTree root_0 = null;

		Token KW_PARTITIONED526=null;
		Token KW_ON527=null;
		Token LPAREN528=null;
		Token RPAREN530=null;
		ParserRuleReturnScope columnNameList529 =null;

		CommonTree KW_PARTITIONED526_tree=null;
		CommonTree KW_ON527_tree=null;
		CommonTree LPAREN528_tree=null;
		CommonTree RPAREN530_tree=null;
		RewriteRuleTokenStream stream_RPAREN=new RewriteRuleTokenStream(adaptor,"token RPAREN");
		RewriteRuleTokenStream stream_KW_PARTITIONED=new RewriteRuleTokenStream(adaptor,"token KW_PARTITIONED");
		RewriteRuleTokenStream stream_KW_ON=new RewriteRuleTokenStream(adaptor,"token KW_ON");
		RewriteRuleTokenStream stream_LPAREN=new RewriteRuleTokenStream(adaptor,"token LPAREN");
		RewriteRuleSubtreeStream stream_columnNameList=new RewriteRuleSubtreeStream(adaptor,"rule columnNameList");

		 msgs.push("view partition specification"); 
		try {
			// HiveParser.g:1447:5: ( KW_PARTITIONED KW_ON LPAREN columnNameList RPAREN -> ^( TOK_VIEWPARTCOLS columnNameList ) )
			// HiveParser.g:1447:7: KW_PARTITIONED KW_ON LPAREN columnNameList RPAREN
			{
			KW_PARTITIONED526=(Token)match(input,KW_PARTITIONED,FOLLOW_KW_PARTITIONED_in_viewPartition8252);  
			stream_KW_PARTITIONED.add(KW_PARTITIONED526);

			KW_ON527=(Token)match(input,KW_ON,FOLLOW_KW_ON_in_viewPartition8254);  
			stream_KW_ON.add(KW_ON527);

			LPAREN528=(Token)match(input,LPAREN,FOLLOW_LPAREN_in_viewPartition8256);  
			stream_LPAREN.add(LPAREN528);

			pushFollow(FOLLOW_columnNameList_in_viewPartition8258);
			columnNameList529=columnNameList();
			state._fsp--;

			stream_columnNameList.add(columnNameList529.getTree());
			RPAREN530=(Token)match(input,RPAREN,FOLLOW_RPAREN_in_viewPartition8260);  
			stream_RPAREN.add(RPAREN530);

			// AST REWRITE
			// elements: columnNameList
			// 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();
			// 1448:5: -> ^( TOK_VIEWPARTCOLS columnNameList )
			{
				// HiveParser.g:1448:8: ^( TOK_VIEWPARTCOLS columnNameList )
				{
				CommonTree root_1 = (CommonTree)adaptor.nil();
				root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TOK_VIEWPARTCOLS, "TOK_VIEWPARTCOLS"), root_1);
				adaptor.addChild(root_1, stream_columnNameList.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;
	}