Skip to content

[core] Expire TIMESTAMP partitions with the values-time strategy - #10851

Open
cxzl25 wants to merge 1 commit into
apache:masterfrom
cxzl25:partition-expire-timestamp-values
Open

cxzl25 wants to merge 1 commit into
apache:masterfrom
cxzl25:partition-expire-timestamp-values

Conversation

@cxzl25

@cxzl25 cxzl25 commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Purpose

Partition expiration with the values-time strategy never expired a partition keyed by a TIMESTAMP or TIMESTAMP_LTZ column: the value was rendered with Timestamp#toString, whose ISO form (2023-01-01T00:00) the default partition time formatter cannot parse. Render such values as the SQL timestamp string for time extraction, and use the stored partition name when dropping them, as already done for DATE keys.

Tests

Add UT

Partition expiration with the values-time strategy never expired a
partition keyed by a TIMESTAMP or TIMESTAMP_LTZ column: the value was
rendered with Timestamp#toString, whose ISO form (2023-01-01T00:00) the
default partition time formatter cannot parse. Render such values as the
SQL timestamp string for time extraction, and use the stored partition
name when dropping them, as already done for DATE keys.
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.

1 participant