Skip to content

Conversation

yunchipang
Copy link
Contributor

Description

Implements filter transformation for TimestampBasedKeyGenerator to enable partition pruning when user filters use timestamp columns but partitions are organized by date components (year, month, day, hour).

example 1

  • user filter: ts_str >= "2024-01-15T00:00:00Z"
  • transformed filter: year >= "2024"

example 2

  • user filter: ts_str = "2024-01-15T12:30:00Z"
  • transformed filter: year = "2024" AND month = "01" AND day = "15" AND hour = "12"

partially closes #286

How are the changes test-covered

  • N/A
  • Automated tests (unit and/or integration tests)
  • Manual tests
    • Details are described below

@yunchipang yunchipang requested a review from xushiyan as a code owner October 9, 2025 17:55
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.

Handle partition filter properly for timestamp based and custom keygen

1 participant