beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luke Cwik (JIRA)" <>
Subject [jira] [Commented] (BEAM-3003) In WithKeys, get coder for key more safely.
Date Tue, 03 Oct 2017 20:05:00 GMT


Luke Cwik commented on BEAM-3003:

There is also the problem that we aren't serializing the provided key with the coder and instead
rely on Java serialization.

> In WithKeys, get coder for key more safely.
> -------------------------------------------
>                 Key: BEAM-3003
>                 URL:
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>            Reporter: Daniel Oliveira
>            Priority: Minor
>              Labels: starter
> In currently the coder for the key type is chosen when the transform is
expanded. This means that there's no way to directly get the type of the input elements, instead
the type is inferred from the function or from a java Class<> object. This means there
can be mismatches between the actual type of the input and the coder used.
> WithKeys should be refactored to retrieve the coder in a safer way and avoid the possibility
of mismatches. 

This message was sent by Atlassian JIRA

View raw message