Skip to content

Conversation

@VGalaxies
Copy link
Contributor

Preserve exclusion pruning when inclusion uses complex wildcards by falling back to PartialPath overlap/include checks in PatternTrie.
Add regression coverage for inclusion/exclusion pruning in unit and integration tests.


This PR was primarily authored with Codex using gpt-5.2-codex high and then hand-reviewed by me. I AM responsible for every change made in this PR. I aimed to keep it aligned with our goals, though I may have missed minor issues. Please flag anything that feels off, I'll fix it quickly.

Comment on lines 893 to 897
if (containsComplexWildcard(path)) {
complexPatterns.add(path);
return;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you place the judge in the loop below? Otherwise, a path without complex wildcard will be traversed twice.

@jt2594838 jt2594838 merged commit 34880db into apache:master Feb 6, 2026
28 checks passed
@VGalaxies VGalaxies deleted the fix-pruning branch February 6, 2026 02:57
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.

2 participants