title: Zip parallell arrays in hive
body: <p>I have parallel arrays in a hive table, like this:</p>
  
  <pre><code>with tbl as ( select array(1,2,3) as x, array('a','b','c') as y) 
  select x,y from tbl;
  
  
  
  x       y
  [1,2,3] ["a","b","c"]
  1 row selected (0.108 seconds)
  </code></pre>
  
  <p>How can I zip them together (like the python zip function), so that I get back a list of structs, like </p>
  
  <pre><code>[(1, "a"), (2, "b"), (3,"c")]
  </code></pre>