Re: Issues with aggregating on map values

2020-02-21 Thread Sungwoo Park
> (BLOOMBERG/ PRINCETON ) , Peter Babinski > (BLOOMBERG/ PRINCETON ) , Bernat Gabor > (BLOOMBERG/ LONDON ) , Shashank Singh (BLOOMBERG/ > PRINCETON ) > Subject: Re: Issues with aggregating on map values > > Hey Nakul! > > It's not clear which version you are usin

Re: Issues with aggregating on map values

2020-02-12 Thread Nakul Khanna (BLOOMBERG/ LONDON)
kul Khanna (BLOOMBERG/ LONDON ) , user@hive.apache.org Cc: Jacky Lee (BLOOMBERG/ PRINCETON ) , He Chen (BLOOMBERG/ PRINCETON ) , Peter Babinski (BLOOMBERG/ PRINCETON ) , Bernat Gabor (BLOOMBERG/ LONDON ) , Shashank Singh (BLOOMBERG/ PRINCETON ) Subject: Re: Issues with aggregating on map v

Re: Issues with aggregating on map values

2020-02-12 Thread Zoltan Haindrich
Hey Nakul! It's not clear which version you are using; I've checked this issue on apache/master and the 3.1.2 release - and both of them returned accurate results. You could execute: 'select version()' ; or run 'hive --version' in a commandline cheers, Zoltan On 2/11/20 11:38 AM, Nakul Khanna

Issues with aggregating on map values

2020-02-11 Thread Nakul Khanna (BLOOMBERG/ LONDON)
Creating the table CREATE TABLE foo (tags MAP, size int); INSERT INTO foo VALUES (map("country", "USA"), 10), (map("country", "USA"), 20), (map("country", "UK"), 30); SELECT * FROM foo ++---+ | foo.tags | foo.size | ++---