spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matei Zaharia <>
Subject Re: collectAsMap doesn't return a multiMap?
Date Wed, 04 Jun 2014 00:29:57 GMT
Yup, it’s meant to be just a Map. You should probably use collect() and build a multimap
instead if you’d like that.


On Jun 3, 2014, at 2:08 PM, Doris Xin <> wrote:

> Hey guys,
> Just wanted to check real quick if collectAsMap was by design not to
> return a multimap (so multiple values to the same key can overwrite
> the same entry). It seems like it's only used in some unit tests in
> the codebase. I added a warning in the comment saying not to expect a
> multimap. Let me know if this is actually a bug that needs to be
> fixed.
> Thanks,
> Doris

View raw message