NullableCoder could be more space efficient
- 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
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