apache / apache/hudi

Refactor HudiAvroSerializer#appendTo and add unit tests

Open
#17,022 2 comments 0 reactions 0 assignees View on GitHub
from-jira priority:high type:devtask
Dominant language
Java
Stars
6.2k
Forks
2.5k
Avg merge
2d 8h
Merged PRs (30d)
111

Description

The current io.trino.plugin.hudi.util.HudiAvroSerializer#appendTo does not have any unit tests and is very long and unmaintainable.

It will be good if we can refactor this function, maybe even the entire class to make it more testable and maintainable.

## JIRA info

- Link: https://issues.apache.org/jira/browse/HUDI-9434
- Type: Task
- Epic: https://issues.apache.org/jira/browse/HUDI-2687

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading io.trino.plugin.hudi.util.HudiAvroSerializer and tracing appendTo to understand its current behavior and dependencies. Add unit tests that cover the existing appendTo behavior, then refactor the function or class for improved testability and maintainability. Done means the behavior is covered by unit tests and the implementation is less long and difficult to maintain.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.