<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question mismatched input 'AS' expecting RIGHT_PAREN in Pig in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/mismatched-input-AS-expecting-RIGHT-PAREN-in-Pig/m-p/191398#M153483</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to fetch url ,methods and class from the below line using Pig Script:&lt;/P&gt;&lt;BLOCKQUOTE&gt;Mapped "{[/aLog/transaction],methods=[POST],produces=[application/vnd.app.v1+json || application/json]}" onto public org.springframework.http.ResponseEntity&amp;lt;java.lang.Object&amp;gt; com.fhlb.user.controller.rest.ALogService.aTransactionDetails(com.fhlb.user.beans.TansactionReportRequest,javax.servlet.http.HttpServletRequest) throws com.fhlb.commons.CustomException,java.io.FileNotFoundException&lt;/BLOCKQUOTE&gt;&lt;P&gt;Here is my Pig Script :&lt;/P&gt;&lt;PRE&gt;extract = FOREACH logs_entry GENERATE FLATTEN(REGEX_EXTRACT_ALL(logmessage,'^(Mapped)\\"(\\{+(\\[+([^/].*)+\\]),methods=(\\[+([A-Z].*)+\\]),produces=(\\[+([^ ].*)+\\])+\\}\\)"\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+(throws)\\s+(.*)
AS (t1:chararray,url:chararray,type:chararray,produces:chararray,t2:chararray,t3:chararray,classes:chararray,throw:chararray,exception:chararray);&lt;/PRE&gt;&lt;P&gt;But I got below error :&lt;/P&gt;&lt;BLOCKQUOTE&gt;ERROR 1200: &amp;lt;line 9, column 229&amp;gt;  mismatched input 'AS' expecting RIGHT_PAREN &lt;/BLOCKQUOTE&gt;&lt;P&gt;I am not good at regex so please help me to find out the solution.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Thu, 22 Mar 2018 20:29:36 GMT</pubDate>
    <dc:creator>priyal</dc:creator>
    <dc:date>2018-03-22T20:29:36Z</dc:date>
  </channel>
</rss>

