You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Aydar Zaynutdinov (Jira)" <ji...@apache.org> on 2021/09/04 05:25:00 UTC

[jira] [Assigned] (BEAM-3385) SerializableCoder should document types need to implement equals and hashCode correctly

     [ https://issues.apache.org/jira/browse/BEAM-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aydar Zaynutdinov reassigned BEAM-3385:
---------------------------------------

    Assignee: Aydar Zaynutdinov

> SerializableCoder should document types need to implement equals and hashCode correctly
> ---------------------------------------------------------------------------------------
>
>                 Key: BEAM-3385
>                 URL: https://issues.apache.org/jira/browse/BEAM-3385
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>            Reporter: Luke Cwik
>            Assignee: Aydar Zaynutdinov
>            Priority: P3
>              Labels: Clarified
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> We should document that SerializableCoder should be used only for objects that have a proper equals() and hashCode(). Because we need some structural value for mutation detection, and since this coder is non-deterministic, it can't provide any structural value other than the object itself. In this case, I suppose, the work would involve just documentation.
> Source for this JIRA stems from this discussion on dev@:
> https://lists.apache.org/thread.html/8b2dcf09ba8e46b3c008293d99e4028d10463148b68326687dc29a4d@%3Cdev.beam.apache.org%3E



--
This message was sent by Atlassian Jira
(v8.3.4#803005)