apache / apache/hudi

FilePathUtils#generatePartitionSpecs generate unexpected partition specs

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

Description

FilePathUtils#generatePartitionSpecs may generate unexpected partition specs if the partition value contains "/", e.g., the partition field is `partition_path`, and the partition value is "2025/10/24", then the generated specs is <`partition_path`, 24>.

## JIRA info

- Link: https://issues.apache.org/jira/browse/HUDI-9396
- Type: Bug

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating FilePathUtils#generatePartitionSpecs and reproduce the case where partition_path has the value "2025/10/24". Trace how the slash-separated value is parsed, then add or update focused coverage to verify that the generated partition spec preserves the complete value rather than returning only 24.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.