Skip to content

[core] Fix partition timestamp pattern replacement for prefix variable names - #9136

Merged
JingsongLi merged 1 commit into
apache:masterfrom
juntaozhang:fix-part-ts-pattern
Aug 10, 2026
Merged

[core] Fix partition timestamp pattern replacement for prefix variable names#9136
JingsongLi merged 1 commit into
apache:masterfrom
juntaozhang:fix-part-ts-pattern

Conversation

@juntaozhang

Copy link
Copy Markdown
Contributor

Purpose

Fix a bug in PartitionTimeExtractor#extract when the partition timestamp pattern contains variables whose names share a common prefix.

Tests

  • Added testPatternWithPrefixVariableNames in PartitionTimeExtractorTest to cover patterns with prefix-sharing variables:
    • $dt1-$dt-$dt2 00:00:00
    • $t $t2:$t3:$t4

@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi
JingsongLi merged commit 6dafb0c into apache:master Aug 10, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants