title: Hive: error when trying to map key and value
body: <p>I have a query like this where I am trying to convert <code>array&lt;struct&lt;key:string,value:array&lt;string&gt;&gt;</code>  to <code>map&lt;string,array&lt;string&gt;&gt;</code>. 
  The query is </p>
  
  <pre><code>SELECT name, address, location, map(collect_set(k1),collect_set(concat_ws("",v1))) AS key_one
  FROM table_a 
  lateral view inline(key_one) t1 as k1,v1
  GROUP BY name, address, location;
  </code></pre>
  
  <p>I get the error as <code>FAILED: SemanticException [Error 10016]: Line 1:62 Argument type mismatch 'v1': Primitive Type is expected but array&lt;string&gt;" is found</code></p>