-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
The DefaultRecord implementation compares and hashes only based on its id field. Two records could have the same id but different contents (a violation of the contract mind you) but still be considered the same.
In my opinion this is unexpected. The built-in equality and hash for a POJO should do the normal expected field-by-field comparison. And if special places in the code (e.g. record deduplication) need to perform hash-by id or equality by id they should do so explicitly.
Metadata
Metadata
Assignees
Labels
No labels