<?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 Not possible to use IS NULL / IS NOT NULL operator on structs in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-possible-to-use-IS-NULL-IS-NOT-NULL-operator-on-structs/m-p/37733#M20526</link>
    <description>&lt;P&gt;It does not seem like the IS NULL / IS NOT NULL operator is supported for struct data types. We are using Impala 2.3.0/CDH5.5.1. This seem like a basic and vital operator to have. Especially when using wide tables. Anybody out there that has a patch or workaround or that actually succeeded to use this operator on structs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have reported &lt;A href="https://issues.cloudera.org/browse/IMPALA-3060" target="_self"&gt;IMPALA-3060&lt;/A&gt; on the topic.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:05:17 GMT</pubDate>
    <dc:creator>Pettax</dc:creator>
    <dc:date>2022-09-16T10:05:17Z</dc:date>
    <item>
      <title>Not possible to use IS NULL / IS NOT NULL operator on structs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-possible-to-use-IS-NULL-IS-NOT-NULL-operator-on-structs/m-p/37733#M20526</link>
      <description>&lt;P&gt;It does not seem like the IS NULL / IS NOT NULL operator is supported for struct data types. We are using Impala 2.3.0/CDH5.5.1. This seem like a basic and vital operator to have. Especially when using wide tables. Anybody out there that has a patch or workaround or that actually succeeded to use this operator on structs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have reported &lt;A href="https://issues.cloudera.org/browse/IMPALA-3060" target="_self"&gt;IMPALA-3060&lt;/A&gt; on the topic.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:05:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-possible-to-use-IS-NULL-IS-NOT-NULL-operator-on-structs/m-p/37733#M20526</guid>
      <dc:creator>Pettax</dc:creator>
      <dc:date>2022-09-16T10:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Not possible to use IS NULL / IS NOT NULL operator on structs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-possible-to-use-IS-NULL-IS-NOT-NULL-operator-on-structs/m-p/37738#M20527</link>
      <description>&lt;P&gt;Thanks for reporting this issue! I agree that it is an unfortunate limitation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FWIW, this limitation is explained here in the docs here:&amp;nbsp;&lt;A href="http://www.cloudera.com/documentation/enterprise/latest/topics/impala_complex_types.html#complex_types_limits_unique_2" target="_blank"&gt;http://www.cloudera.com/documentation/enterprise/latest/topics/impala_complex_types.html#complex_types_limits_unique_2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Currently, Impala built-in functions and user-defined functions cannot accept complex types as parameters or produce them as function return values"&lt;/SPAN&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 16:28:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-possible-to-use-IS-NULL-IS-NOT-NULL-operator-on-structs/m-p/37738#M20527</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2016-02-23T16:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Not possible to use IS NULL / IS NOT NULL operator on structs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-possible-to-use-IS-NULL-IS-NOT-NULL-operator-on-structs/m-p/37804#M20528</link>
      <description>&lt;P&gt;Thank you for your prompt reply! I will hold my attempts using this operation.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 20:25:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-possible-to-use-IS-NULL-IS-NOT-NULL-operator-on-structs/m-p/37804#M20528</guid>
      <dc:creator>Pettax</dc:creator>
      <dc:date>2016-02-24T20:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Not possible to use IS NULL / IS NOT NULL operator on structs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-possible-to-use-IS-NULL-IS-NOT-NULL-operator-on-structs/m-p/86798#M20529</link>
      <description>&lt;P&gt;Is there a solution to this yet ?&lt;/P&gt;&lt;P&gt;I am running into the same issue. I am using a IS NOT NULL clause in the Where condition and it is being ignored and rows with null values in that column are being retured by the query.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 22:38:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-possible-to-use-IS-NULL-IS-NOT-NULL-operator-on-structs/m-p/86798#M20529</guid>
      <dc:creator>nav2014</dc:creator>
      <dc:date>2019-02-21T22:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Not possible to use IS NULL / IS NOT NULL operator on structs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-possible-to-use-IS-NULL-IS-NOT-NULL-operator-on-structs/m-p/86809#M20530</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have not followed the development of Impala lateley.If this i still a limitation you might try the following approach.Design the schema with an additional column with information about which rows holds information &lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt; &lt;SPAN&gt;a particular struct column and then use this additional column&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; the WHERE clause. Something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;name      complex1      complex2   complex3
complex1  content       NULL       NULL
complex3  NULL          NULL       content&lt;/PRE&gt;&lt;DIV&gt;&lt;SPAN&gt;and then:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;SELECT complex1.*
FROM myTable
WHERE name = 'complex1'&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Br,&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;Petter&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Feb 2019 08:27:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-possible-to-use-IS-NULL-IS-NOT-NULL-operator-on-structs/m-p/86809#M20530</guid>
      <dc:creator>Pettax</dc:creator>
      <dc:date>2019-02-22T08:27:59Z</dc:date>
    </item>
  </channel>
</rss>

