<?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 Display blank space for a column as NULL in the HIVE table data in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Display-blank-space-for-a-column-as-NULL-in-the-HIVE-table/m-p/337579#M232640</link>
    <description>&lt;P&gt;I am trying to display a column in HIVE as 'NULL' whenever the source data has a blank space. I tried using the SET TBLPROPERTIES ('serialization.null.format'='\\N') and&amp;nbsp;SET TBLPROPERTIES ('serialization.null.format'='') which did not work.&amp;nbsp;Does anyone know how to resolve this?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 08:00:18 GMT</pubDate>
    <dc:creator>BIDEV3421</dc:creator>
    <dc:date>2026-04-21T08:00:18Z</dc:date>
    <item>
      <title>Display blank space for a column as NULL in the HIVE table data</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Display-blank-space-for-a-column-as-NULL-in-the-HIVE-table/m-p/337579#M232640</link>
      <description>&lt;P&gt;I am trying to display a column in HIVE as 'NULL' whenever the source data has a blank space. I tried using the SET TBLPROPERTIES ('serialization.null.format'='\\N') and&amp;nbsp;SET TBLPROPERTIES ('serialization.null.format'='') which did not work.&amp;nbsp;Does anyone know how to resolve this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 08:00:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Display-blank-space-for-a-column-as-NULL-in-the-HIVE-table/m-p/337579#M232640</guid>
      <dc:creator>BIDEV3421</dc:creator>
      <dc:date>2026-04-21T08:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Display blank space for a column as NULL in the HIVE table data</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Display-blank-space-for-a-column-as-NULL-in-the-HIVE-table/m-p/337597#M232647</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95388"&gt;@BIDEV3421&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This property is for the opposite of what you want. The value of this property is what hive shows when the source day has a null value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think there's a property to do what you want, but you can use an expression like the following in your select:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;case when mycol = ' ' then NULL else mycol end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 09:39:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Display-blank-space-for-a-column-as-NULL-in-the-HIVE-table/m-p/337597#M232647</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-03-03T09:39:26Z</dc:date>
    </item>
  </channel>
</rss>

