apache / apache/beam

Simplify DefaultCoder

Open
#18,462 0 comments 0 reactions 0 assignees View on GitHub
bug core java P3
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
2d 5h
Merged PRs (30d)
204

Description

DefaultCoder is too hard to use - it requires having a CoderProvider class and a bunch of other boilerplate. It should have simpler usage modes, e.g. @DefaultCoder(FooCoder.class) class Foo should simply work if FooCoder only has a "static FooCoder of()" method, or "of(TypeDescriptor)" for more complex use cases (eg generics).

Imported from Jira [BEAM-2754](https://issues.apache.org/jira/browse/BEAM-2754). Original Jira may contain additional context.
Reported by: jkff.

Contributor guide

Open the contributing guide

Research direction

Start by reading the existing DefaultCoder and CoderProvider APIs and the issue's examples for FooCoder and TypeDescriptor. Check the imported BEAM-2754 context for additional requirements. The work is done when DefaultCoder supports the described static of() usage modes without the current boilerplate.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.