You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Neville Li (JIRA)" <ji...@apache.org> on 2017/07/22 06:58:00 UTC
[jira] [Created] (BEAM-2658) SerializableCoder has high precedence
over ProtoCoder in CoderRegistry#getCoder
Neville Li created BEAM-2658:
--------------------------------
Summary: SerializableCoder has high precedence over ProtoCoder in CoderRegistry#getCoder
Key: BEAM-2658
URL: https://issues.apache.org/jira/browse/BEAM-2658
Project: Beam
Issue Type: Bug
Components: sdk-java-core
Affects Versions: 2.0.0
Reporter: Neville Li
Assignee: Davor Bonaci
Priority: Minor
{{
public class CoderTest {
public static void main(String[] args) throws CannotProvideCoderException {
PipelineOptions options = PipelineOptionsFactory.fromArgs(args).create();
Pipeline pipeline = Pipeline.create(options);
Coder<Timestamp> coder = pipeline.getCoderRegistry().getCoder(Timestamp.class);
// class org.apache.beam.sdk.coders.SerializableCoder
System.out.println(coder.getClass());
}
}
}}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)