<?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 OpenCSV serde in hive gives &amp;quot; ( double quotes) when field is empty in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/OpenCSV-serde-in-hive-gives-quot-double-quotes-when-field-is/m-p/130474#M39374</link>
    <description>&lt;P&gt;I have mapped CSV to hive .&lt;/P&gt;&lt;P&gt;In case my CSV has nothing for value i.e is an empty string for a column value, hive shows column value as &lt;/P&gt;&lt;PRE&gt;"&lt;/PRE&gt;&lt;P&gt;So, in this case, I can not check if the value is NULL,because for hive, value is " .&lt;/P&gt;&lt;P&gt;if I see CSV in a text editor, I can see that the value there is &lt;/P&gt;&lt;PRE&gt;""""&lt;/PRE&gt;&lt;P&gt;double quotes with in double quotes. Is there a way I can fix it?&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2016 13:45:42 GMT</pubDate>
    <dc:creator>simran_k</dc:creator>
    <dc:date>2016-09-01T13:45:42Z</dc:date>
    <item>
      <title>OpenCSV serde in hive gives " ( double quotes) when field is empty</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/OpenCSV-serde-in-hive-gives-quot-double-quotes-when-field-is/m-p/130474#M39374</link>
      <description>&lt;P&gt;I have mapped CSV to hive .&lt;/P&gt;&lt;P&gt;In case my CSV has nothing for value i.e is an empty string for a column value, hive shows column value as &lt;/P&gt;&lt;PRE&gt;"&lt;/PRE&gt;&lt;P&gt;So, in this case, I can not check if the value is NULL,because for hive, value is " .&lt;/P&gt;&lt;P&gt;if I see CSV in a text editor, I can see that the value there is &lt;/P&gt;&lt;PRE&gt;""""&lt;/PRE&gt;&lt;P&gt;double quotes with in double quotes. Is there a way I can fix it?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 13:45:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/OpenCSV-serde-in-hive-gives-quot-double-quotes-when-field-is/m-p/130474#M39374</guid>
      <dc:creator>simran_k</dc:creator>
      <dc:date>2016-09-01T13:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: OpenCSV serde in hive gives " ( double quotes) when field is empty</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/OpenCSV-serde-in-hive-gives-quot-double-quotes-when-field-is/m-p/130475#M39375</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10486/simrank.html" nodeid="10486"&gt;@Simran Kaur&lt;/A&gt;&lt;P&gt;you should set tblproperties on your table to treat blanks as NULL &lt;A href="https://community.hortonworks.com/questions/21001/i-have-few-column-to-make-external-table-in-hive-f.html" target="_blank"&gt;https://community.hortonworks.com/questions/21001/i-have-few-column-to-make-external-table-in-hive-f.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;TBLPROPERTIES ('serialization.null.format'='')
&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Sep 2016 05:44:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/OpenCSV-serde-in-hive-gives-quot-double-quotes-when-field-is/m-p/130475#M39375</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-09-12T05:44:07Z</dc:date>
    </item>
  </channel>
</rss>

