You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Stephan Ewen (Jira)" <ji...@apache.org> on 2020/03/11 20:58:00 UTC

[jira] [Created] (FLINK-16555) Preflight check for known unstable hashCodes.

Stephan Ewen created FLINK-16555:
------------------------------------

             Summary: 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
            Reporter: Stephan Ewen
             Fix For: 1.11.0


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)