Re: collect_list on two columns of the same row

2014-02-05 Thread ZORAIDA HIDALGO SANCHEZ
Dear all, other question, related with the previous one is: can I assume that map_values(map) and map_keys(map) are going to be correlated? That is: having this map: {k1:v1, k2:v2}, map_values will return [v1,v2] and map_keys will return [k1,k2] or map_values will return [v2,v1] and map_keys

collect_list on two columns of the same row

2014-02-04 Thread ZORAIDA HIDALGO SANCHEZ
Dear all, I need to call to one of my UDFs that receives two arrays as a parameters. Each of these arrays represents the result of collect_list(col) after doing group by. Does the first position of the first array correspond with the first position to the second array? Por instace, having this