Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect serialization of collections.Counter objects. #3846

Closed
robertnishihara opened this issue Jan 24, 2019 · 2 comments
Closed

Incorrect serialization of collections.Counter objects. #3846

robertnishihara opened this issue Jan 24, 2019 · 2 comments
Labels
bug Something that is supposed to be working; but isn't

Comments

@robertnishihara
Copy link
Collaborator

from collections import Counter
import ray

ray.init(num_cpus=0)

c = Counter([1, 2, 3])
print(c)  # Counter({1: 1, 2: 1, 3: 1})

new_c = ray.get(ray.put(c))
print(new_c)  # Counter()
@robertnishihara robertnishihara added the bug Something that is supposed to be working; but isn't label Jan 24, 2019
@richardliaw
Copy link
Contributor

Maybe when this is addressed, there should be a test suite for all collections objects because defaultdict has also been problematic in the past.

@robertnishihara
Copy link
Collaborator Author

Fixed now, by the arrow update and tested in #3982.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is supposed to be working; but isn't
Projects
None yet
Development

No branches or pull requests

2 participants