beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Groh (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (BEAM-1860) SerializableCoder should not extend DeterministicStandardCoder
Date Thu, 20 Apr 2017 01:04:04 GMT

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

Thomas Groh reassigned BEAM-1860:
---------------------------------

    Assignee: Thomas Groh  (was: Davor Bonaci)

> SerializableCoder should not extend DeterministicStandardCoder
> --------------------------------------------------------------
>
>                 Key: BEAM-1860
>                 URL: https://issues.apache.org/jira/browse/BEAM-1860
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>    Affects Versions: 0.6.0
>            Reporter: Wesley Tanaka
>            Assignee: Thomas Groh
>
> Not sure if this is just a doc bug, but:
> https://beam.apache.org/documentation/sdks/javadoc/0.6.0/org/apache/beam/sdk/coders/SerializableCoder.html
says:
> SerializableCoder does not guarantee a deterministic encoding, as Java serialization
may produce different binary encodings for two equivalent objects.
> Yet https://beam.apache.org/documentation/sdks/javadoc/0.6.0/org/apache/beam/sdk/coders/DeterministicStandardCoder.html
says:
> A DeterministicStandardCoder is a StandardCoder that is deterministic, in the sense that
for objects considered equal according to Object.equals(Object), the encoded bytes are also
equal.
> These sound like they conflict, and thus that SerializableCoder should not extend DeterministicStandardCoder



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message