<?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>topic Removing special character in data in databricks in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/removing-special-character-in-data-in-databricks/m-p/28635#M709</link>
    <description>&lt;P&gt;Hi dear community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My company is in a migration project from MapR to databricks, and we have the following piece of code that used to work fine in this platform but once in  databricks it stopped working. I noticed that this is failing is just with this specific regular expresion because with others this is not getting any error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is "Error while obtaining a new communication channel" and after that, we can not continue writting code and testing, something breaks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching a screenshot for reference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Error while obtaining a new communication channel"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2111i48C6C4208893D7A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error while obtaining a new communication channel" alt="Error while obtaining a new communication channel" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import pyspark.sql.functions as pyfunc&lt;/P&gt;&lt;P&gt;df=spark.read.parquet("/mnt/gpdipedlstgamrasp50565/stg_db/intermediate/ODX/ODW/STUDY_REPORT/Current/Data/")&lt;/P&gt;&lt;P&gt;df.count()&lt;/P&gt;&lt;P&gt;df = df.withColumn('CSR_RESULTS_SUMMARY', pyfunc.regexp_replace(pyfunc.col('CSR_RESULTS_SUMMARY'),u'([\ud800-\udfff\ufdd0-\ufdef\ufffe-\uffff+])',''))&lt;/P&gt;&lt;P&gt;df.show()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 14:26:25 GMT</pubDate>
    <dc:creator>eimis_pacheco</dc:creator>
    <dc:date>2022-02-11T14:26:25Z</dc:date>
    <item>
      <title>Removing special character in data in databricks</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/removing-special-character-in-data-in-databricks/m-p/28635#M709</link>
      <description>&lt;P&gt;Hi dear community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My company is in a migration project from MapR to databricks, and we have the following piece of code that used to work fine in this platform but once in  databricks it stopped working. I noticed that this is failing is just with this specific regular expresion because with others this is not getting any error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is "Error while obtaining a new communication channel" and after that, we can not continue writting code and testing, something breaks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching a screenshot for reference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Error while obtaining a new communication channel"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2111i48C6C4208893D7A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error while obtaining a new communication channel" alt="Error while obtaining a new communication channel" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import pyspark.sql.functions as pyfunc&lt;/P&gt;&lt;P&gt;df=spark.read.parquet("/mnt/gpdipedlstgamrasp50565/stg_db/intermediate/ODX/ODW/STUDY_REPORT/Current/Data/")&lt;/P&gt;&lt;P&gt;df.count()&lt;/P&gt;&lt;P&gt;df = df.withColumn('CSR_RESULTS_SUMMARY', pyfunc.regexp_replace(pyfunc.col('CSR_RESULTS_SUMMARY'),u'([\ud800-\udfff\ufdd0-\ufdef\ufffe-\uffff+])',''))&lt;/P&gt;&lt;P&gt;df.show()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 14:26:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/removing-special-character-in-data-in-databricks/m-p/28635#M709</guid>
      <dc:creator>eimis_pacheco</dc:creator>
      <dc:date>2022-02-11T14:26:25Z</dc:date>
    </item>
  </channel>
</rss>

