Details
-
Improvement
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
Description
Data types can only be used as keys, if they have a stable hash code implementation that is deterministic across JVMs. Otherwise, the keyBy() operations will result in incorrect data routing.
We should eagerly check the key type information for known cases types with unstable hash code, such as
- arrays
- enums
- anything that does not override Object.hashCode
Attachments
Issue Links
- relates to
-
FLINK-5874 Reject arrays as keys in DataStream API to avoid inconsistent hashing
- Closed
-
FLINK-16596 Support Enum-Values as part of a Key
- Open
- links to