Skip to content

Conversation

@tvalentyn
Copy link
Contributor

[BEAM-3724]
Make hash function in Coder base class more conservative, to avoid evaluating hash based on potentially mutable collection.


Follow this checklist to help us incorporate your contribution quickly and easily:

  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.

@tvalentyn
Copy link
Contributor Author

R: @aaltay
cc: @RobbeSneyders

def __eq__(self, other):
return (self.__class__ == other.__class__
and self._dict_without_impl() == other._dict_without_impl())
# pylint: enable=protected-access
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this pylint comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a matching comment for the comment in line 219. I think the comment in #219 is still needed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. L219 was not visible by default.

@aaltay aaltay merged commit 713873f into apache:master May 30, 2018
@tvalentyn tvalentyn deleted the patch-15 branch August 27, 2019 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants