Skip to content

feat: Extend FilterSegmentPruner to prune on ClusterGroupTuples - #20149

Open
cecemei wants to merge 2 commits into
apache:masterfrom
cecemei:shard2
Open

feat: Extend FilterSegmentPruner to prune on ClusterGroupTuples #20149
cecemei wants to merge 2 commits into
apache:masterfrom
cecemei:shard2

Conversation

@cecemei

@cecemei cecemei commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Description

FilterSegmentPruner currently only prunes segments using shard-spec domain ranges (ShardSpec#possibleInDomain). This adds a second, independent check against DataSegment#getClusterGroups(). When a segment carries ClusterGroupTuples, the pruner now also excludes the segment if none of its tuples can satisfy the filter.


This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

@cecemei cecemei changed the title pruning feat: Extend FilterSegmentPruner to prune on ClusterGroupTuples Aug 25, 2026
@cecemei
cecemei marked this pull request as ready for review August 25, 2026 19:14
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