Skip to content

Add partition range filter to rill project refresh#9533

Draft
rohithreddykota wants to merge 1 commit into
mainfrom
rohithreddykota/refresh-partition-range
Draft

Add partition range filter to rill project refresh#9533
rohithreddykota wants to merge 1 commit into
mainfrom
rohithreddykota/refresh-partition-range

Conversation

@rohithreddykota

Copy link
Copy Markdown
Contributor

Adds --partition-key, --partition-start, and --partition-end flags to rill project refresh so a contiguous range of incremental-model partitions can be refreshed without having to look up each MD5 partition key by hand.

  • Resolves partitions client-side: lists every partition of the target model, filters by data[<key>] against [start, end] (inclusive, lexicographic string compare), prints the matched rows, and asks for confirmation before triggering. --yes skips the prompt for scripted use.
  • Reuses RefreshModelTrigger.Partitions end-to-end — no proto, admin, or reconciler changes.
  • Mutually exclusive with --partition / --errored-partitions; requires exactly one --model; enforces the existing "model must be incremental" check.

Example:

```
rill project refresh --model my_model \
--partition-key date \
--partition-start 2026-03-02 \
--partition-end 2026-03-08
```

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

Developed in collaboration with Claude Code

Adds --partition-key, --partition-start, and --partition-end flags so
operators can refresh a contiguous range of incremental-model partitions
without having to look up each MD5 partition key manually. Resolution
happens client-side and the matched partitions are listed for
confirmation before triggering; --yes skips the prompt.
@rohithreddykota rohithreddykota marked this pull request as draft June 8, 2026 19:44
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