title: Hive sql struct mismatch
body: <p>I have a table with columns like this:</p>
  
  <pre><code>table&lt;mytable&gt;
  field&lt;myfield1&gt; type(array&lt;struct&gt;) 
    item&lt;struct&gt;
      cars(string)
      isRed(boolean)
      information(bigint)
  </code></pre>
  
  <p>When I perform the following query </p>
  
  <pre><code>select myfield1.isRed
  from mytable
  where myfield1.isRed = true
  </code></pre>
  
  <p>I get an error:</p>
  
  <blockquote>
    <p>Argument type mismatch '': The 1st argument of EQUAL is expected to a primitive type, but list is found</p>
  </blockquote>
  
  <p>When I query without the where the data looks something like this</p>
  
  <pre><code>[true,true,true]
  [true,true,true,true,true,true]
  [true]
  [true, true]
  </code></pre>