[
https://issues.apache.org/jira/browse/FLINK-16555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aljoscha Krettek closed FLINK-16555.
------------------------------------
Resolution: Fixed
master: 7cf0f6880896bb30bec2f8fc0c6193bfa35c4f04
This adds rejection of enums. Arrays and objects that didn't define
{{hashCode()}} were already rejected before.
> Preflight check for known unstable hashCodes.
> ---------------------------------------------
>
> Key: FLINK-16555
> URL: https://issues.apache.org/jira/browse/FLINK-16555
> Project: Flink
> Issue Type: Improvement
> Components: API / DataStream, API / Type Serialization System
> Reporter: Stephan Ewen
> Assignee: Lu Niu
> Priority: Critical
> Labels: pull-request-available, usability
> Fix For: 1.11.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)