Skip to content

[core] Validate DATE partitions by their date value in partition.timestamp-format.strict - #10874

Open
thswlsqls wants to merge 1 commit into
apache:masterfrom
thswlsqls:fix/date-partition-strict-timestamp-validation
Open

thswlsqls wants to merge 1 commit into
apache:masterfrom
thswlsqls:fix/date-partition-strict-timestamp-validation

Conversation

@thswlsqls

Copy link
Copy Markdown
Contributor

Purpose

fix #10873

Tests

  • Added TableWriteTest#testPartitionTimestampValidationWithDatePartition: yyyy-MM-dd + $dt writes and commits; yyyyMMdd throws with dt=2026-10-29.
  • Without the fix, the new test fails with Partition dt=20755 does not match ....
  • mvn -pl paimon-core clean install (JDK 11, checkstyle and spotless included) passed with 0 failures; PostgresqlCatalogTest was excluded locally because it needs Docker.

…stamp-format.strict

PartitionTimestampValidator passed DATE partition values to
PartitionTimeExtractor as raw epoch-day integers, so the documented
'yyyy-MM-dd' + '$dt' setup failed on every write once
partition.timestamp-format.strict was enabled. Convert DATE values to
LocalDate first, as PartitionExpireStrategy#convertPartition does.

Generated-by: Claude Code
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.

[Bug] partition.timestamp-format.strict rejects every DATE partition value

1 participant