<?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 Re: 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/191399#M153484</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/17036/priyal.html" nodeid="17036"&gt;@priyal patel&lt;/A&gt;&lt;P&gt;Your statement has a syntax issue and that is why you are getting the current error. So if you retype your pig script as follows, you won't have the syntax error.&lt;/P&gt;&lt;PRE&gt;extract = FOREACH a GENERATE FLATTEN(REGEX_EXTRACT_ALL(rec,'^(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;Now, your regex is as is as you mentioned in the question. I need some more info regarding what you want to fetch out of this error message. And then we can work on the desired regex.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 01:54:32 GMT</pubDate>
    <dc:creator>RahulSoni</dc:creator>
    <dc:date>2018-03-23T01:54:32Z</dc:date>
  </channel>
</rss>

