apache / apache/beam

NullableCoder could be more space efficient

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

Description

NullableCoder uses one byte to encode the presence or absence of data when a single bit should be enough. (see javadoc https://beam.apache.org/releases/javadoc/2.9.0/org/apache/beam/sdk/coders/NullableCoder.html and source: https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/coders/NullableCoder.java#L49-L50).

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

Contributor guide

Open the contributing guide

Research direction

Start with sdks/java/core/src/main/java/org/apache/beam/sdk/coders/NullableCoder.java at the cited lines, then compare its implementation with the 2.9.0 Javadoc. Determine how presence is encoded and what compatibility constraints apply; done means NullableCoder preserves its behavior while using the requested bit-level representation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.