Title: __hash__ methods broken · Issue #2506 · feast-dev/feast · GitHub
Open Graph Title: __hash__ methods broken · Issue #2506 · feast-dev/feast
X Title: __hash__ methods broken · Issue #2506 · feast-dev/feast
Description: Expected Behavior The __hash__ methods should not be implemented like this: def __hash__(self) -> int: return hash((id(self), self.name)) Objects with the __hash__ method implemented in such a way are not being deduplicated correctly in ...
Open Graph Description: Expected Behavior The __hash__ methods should not be implemented like this: def __hash__(self) -> int: return hash((id(self), self.name)) Objects with the __hash__ method implemented in such a way ...
X Description: Expected Behavior The __hash__ methods should not be implemented like this: def __hash__(self) -> int: return hash((id(self), self.name)) Objects with the __hash__ method implemented in such a w...
Opengraph URL: https://github.com/feast-dev/feast/issues/2506
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"__hash__ methods broken","articleBody":"## Expected Behavior\r\n\r\nThe `__hash__` methods should not be implemented like this:\r\n```\r\ndef __hash__(self) -\u003e int:\r\n return hash((id(self), self.name))\r\n```\r\n\r\nObjects with the `__hash__` method implemented in such a way are not being deduplicated correctly in e.g. sets and dicts.\r\n\r\n## Current Behavior\r\n\r\n## Steps to reproduce\r\n\r\n### Specifications\r\n\r\n- Version:\r\n- Platform:\r\n- Subsystem:\r\n\r\n## Possible Solution\r\n","author":{"url":"https://github.com/felixwang9817","@type":"Person","name":"felixwang9817"},"datePublished":"2022-04-06T23:15:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2506/feast/issues/2506"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0b30704a-9acd-97f9-6fc8-1b5c9d39a526 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2A6:B7AC4:11CB1C4:195190B:6978D564 |
| html-safe-nonce | e3256fc36fd5941530e1e79ba48a0dbadb10c938a06827859857d774ebe96fc8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkE2OkI3QUM0OjExQ0IxQzQ6MTk1MTkwQjo2OTc4RDU2NCIsInZpc2l0b3JfaWQiOiI3NTAyMDg1NDM0Mjg5NzM5MTA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3200e1c3839d4d2c22840aa2d57c0715777b84ce2bb98b5e91cb711995f65aa8 |
| hovercard-subject-tag | issue:1195293634 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/2506/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9dc55f3a3c7236626f6c9aa46566a8a3881b625506b3f598291d3d147cdecf48/feast-dev/feast/issues/2506 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9dc55f3a3c7236626f6c9aa46566a8a3881b625506b3f598291d3d147cdecf48/feast-dev/feast/issues/2506 |
| og:image:alt | Expected Behavior The __hash__ methods should not be implemented like this: def __hash__(self) -> int: return hash((id(self), self.name)) Objects with the __hash__ method implemented in such a way ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | felixwang9817 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8a71ca1f7ab5436216e1df86f398ef7a51ed3152c90e3f7332fc70cf97fcb9d6 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | eaed570eead52a9920afef75dc3eb6d826fdc5ef |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width