<?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: How not show null fields in hive(Hue, beeline)? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-not-show-null-fields-in-hive-Hue-beeline/m-p/376577#M242950</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107027"&gt;@PetiaLeshiy&lt;/a&gt;&amp;nbsp;If I understand correctly, you want to dispaly NOT NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp;&lt;SPAN class="hljs-keyword"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="hljs-operator"&gt;*&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;FROM&lt;/SPAN&gt;&lt;SPAN&gt; table_name &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN&gt; column_name &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;IS&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;NOT&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;NULL&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2023 14:10:36 GMT</pubDate>
    <dc:creator>asish</dc:creator>
    <dc:date>2023-09-20T14:10:36Z</dc:date>
    <item>
      <title>How not show null fields in hive(Hue, beeline)?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-not-show-null-fields-in-hive-Hue-beeline/m-p/376558#M242941</link>
      <description>&lt;P&gt;I'm new in hive so it can be very stupid question) In our project we have very difficult model that contains a lot of arrays and nested fields. This model describes interaction with other systems so its filling can be very different. It is something like logs. We save this data in Hadoop using external table and orc files. It is a very big struct field. Apache ORC Tools is used by us for creating orc files and making orc schema. We don't have problem with writing, but when we read data we get a lot of "null" values. I understand that reasons of it are difficult model and different filled fields. But output in beeline or Hue is unreadable:&lt;/P&gt;&lt;P&gt;...{""id"":""mqqqnc"",""value"":[{""Ipv4Value"":null,""StringValue"":{""value"":""99""}}]},{""id"":""eee"",""value"":[{""Ipv4Value"":null,""StringValue"":{""value"":""254103""}}]},{""id"":""uli"",""value"":[{""Ipv4Value"":null,""StringValue"":{""value"":""asfsfsd""}} ...&lt;/P&gt;&lt;P&gt;This example is a little part of our struct field but we have three null field.&lt;/P&gt;&lt;P&gt;Is it possible to not show fields with null value? Thak everyone for help!!!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 11:06:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-not-show-null-fields-in-hive-Hue-beeline/m-p/376558#M242941</guid>
      <dc:creator>PetiaLeshiy</dc:creator>
      <dc:date>2023-09-20T11:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: How not show null fields in hive(Hue, beeline)?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-not-show-null-fields-in-hive-Hue-beeline/m-p/376576#M242949</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107027"&gt;@PetiaLeshiy&lt;/a&gt;,&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged in our Hive experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/71090"&gt;@asish&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82698"&gt;@smruti&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31523"&gt;@tjangid&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 14:06:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-not-show-null-fields-in-hive-Hue-beeline/m-p/376576#M242949</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2023-09-20T14:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: How not show null fields in hive(Hue, beeline)?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-not-show-null-fields-in-hive-Hue-beeline/m-p/376577#M242950</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107027"&gt;@PetiaLeshiy&lt;/a&gt;&amp;nbsp;If I understand correctly, you want to dispaly NOT NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp;&lt;SPAN class="hljs-keyword"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="hljs-operator"&gt;*&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;FROM&lt;/SPAN&gt;&lt;SPAN&gt; table_name &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN&gt; column_name &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;IS&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;NOT&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;NULL&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 14:10:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-not-show-null-fields-in-hive-Hue-beeline/m-p/376577#M242950</guid>
      <dc:creator>asish</dc:creator>
      <dc:date>2023-09-20T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: How not show null fields in hive(Hue, beeline)?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-not-show-null-fields-in-hive-Hue-beeline/m-p/376587#M242952</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107027"&gt;@PetiaLeshiy&lt;/a&gt;&amp;nbsp;Adding to&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/71090"&gt;@asish&lt;/a&gt;&amp;nbsp;'s comment, as its a struct column, we could write the query something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT * FROM TABLE_NAME LATERAL VIEW explode(struct_col_name.list_name) exploded_column AS xyz WHERE xyz IS NOT NULL;&lt;/LI-CODE&gt;&lt;P&gt;You may make changes where required.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 15:18:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-not-show-null-fields-in-hive-Hue-beeline/m-p/376587#M242952</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2023-09-20T15:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: How not show null fields in hive(Hue, beeline)?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-not-show-null-fields-in-hive-Hue-beeline/m-p/376762#M242999</link>
      <description>&lt;P&gt;Thx for your answer, but i try to find a solution that can drop nested null-field in struct in the output. And I want that happens autmomatically)&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 07:30:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-not-show-null-fields-in-hive-Hue-beeline/m-p/376762#M242999</guid>
      <dc:creator>PetiaLeshiy</dc:creator>
      <dc:date>2023-09-25T07:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How not show null fields in hive(Hue, beeline)?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-not-show-null-fields-in-hive-Hue-beeline/m-p/376764#M243000</link>
      <description>&lt;P&gt;Thx for your answer, but I have problem that i don't know what fields can be null( my query will have a different columns in WHERE statment &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 07:36:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-not-show-null-fields-in-hive-Hue-beeline/m-p/376764#M243000</guid>
      <dc:creator>PetiaLeshiy</dc:creator>
      <dc:date>2023-09-25T07:36:06Z</dc:date>
    </item>
  </channel>
</rss>

