apache / apache/beam

Abstract Coder translation from Runner API Protos

Open
#18,345 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 2h
Merged PRs (30d)
205

Description

Instead of having a large switch statement that constructs known coders, have a map from URN to an interface that takes `(RunnerApi.Coder, RunnerApi.Components)` and produces a java Coder, and delegate all calls in `fromProto` to that map.

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

Contributor guide

Open the contributing guide

Research direction

Start by locating fromProto and its current switch over coder URNs, then inspect the RunnerApi.Coder and RunnerApi.Components types it receives. Done means supported URNs are delegated through the proposed map while preserving the existing coder translation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, distributed-systems
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.