<?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 How to use regexp_replace in hive to remove special character ^ in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-regexp-replace-in-hive-to-remove-special/m-p/233568#M79976</link>
    <description>&lt;P&gt;I have an expression like &lt;/P&gt;&lt;P&gt;HA^G^FER$$JY&lt;/P&gt;&lt;P&gt;I would like to replace the all ^ with $.&lt;/P&gt;&lt;P&gt;How do I do it. I tried all methods but this isn't working.&lt;/P&gt;&lt;P&gt;Most common error I get is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 00:51:29 GMT</pubDate>
    <dc:creator>achandra</dc:creator>
    <dc:date>2018-06-28T00:51:29Z</dc:date>
    <item>
      <title>How to use regexp_replace in hive to remove special character ^</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-regexp-replace-in-hive-to-remove-special/m-p/233568#M79976</link>
      <description>&lt;P&gt;I have an expression like &lt;/P&gt;&lt;P&gt;HA^G^FER$$JY&lt;/P&gt;&lt;P&gt;I would like to replace the all ^ with $.&lt;/P&gt;&lt;P&gt;How do I do it. I tried all methods but this isn't working.&lt;/P&gt;&lt;P&gt;Most common error I get is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 00:51:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-regexp-replace-in-hive-to-remove-special/m-p/233568#M79976</guid>
      <dc:creator>achandra</dc:creator>
      <dc:date>2018-06-28T00:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regexp_replace in hive to remove special character ^</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-regexp-replace-in-hive-to-remove-special/m-p/233569#M79977</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/76199/achandra.html" nodeid="76199"&gt;@Abhilash Chandrasekharan&lt;/A&gt;&lt;P&gt;Try with the below syntax&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; select regexp_replace('HA^G^FER$JY',"\\^","\\$");
+---------------+--+
|      _c0      |
+---------------+--+
| HA$G$FER$JY  |
+---------------+--+&lt;/PRE&gt;&lt;P&gt;As ^,$ are reserved keys for Regex so use two back slashes in regexp_replace function.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 04:40:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-regexp-replace-in-hive-to-remove-special/m-p/233569#M79977</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-06-28T04:40:18Z</dc:date>
    </item>
  </channel>
</rss>

