Skip to content

Move TermsTrie and SuffixTrie into their own modules - #10887

Merged
daxhuiberts merged 1 commit into
masterfrom
dax-ctrie-relocate
Aug 14, 2026
Merged

daxhuiberts merged 1 commit into
masterfrom
dax-ctrie-relocate

Conversation

@daxhuiberts

@daxhuiberts daxhuiberts commented Aug 12, 2026 •

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

  1. Current: both trie wrappers and the shared wildcard pattern live in a single lib.rs,
    with the two types' methods interleaved.
  2. Change: terms, suffix and pattern modules, with the integration tests split the
    same way. lib.rs becomes module declarations and re-exports.
  3. Outcome: internal only. This is a pure move — no logic, documentation or comment
    changes.

Which additional issues this PR fixes

N/A

Main objects this PR modified

  1. c_trie::terms / c_trie::suffix — the two wrappers, one module each.
  2. c_trie::pattern — LoweredPattern, shared by both.
  3. LoweredPattern::runes — widened to pub(crate); the only change the move forces.

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

Release Notes

  • This PR requires release notes
  • This PR does not require release notes

@daxhuiberts
daxhuiberts requested a review from memark August 12, 2026 14:05
@daxhuiberts daxhuiberts mentioned this pull request Aug 12, 2026
1 of 4 tasks
@codecov

codecov Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.00692% with 52 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.20%. Comparing base (1c5103d) to head (06323ab).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/redisearch_rs/c_wrappers/c_trie/src/terms.rs 76.37% 43 Missing ⚠️
src/redisearch_rs/c_wrappers/c_trie/src/suffix.rs 90.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10887      +/-   ##
==========================================
- Coverage   83.17%   82.20%   -0.97%     
==========================================
  Files         609      635      +26     
  Lines       81136    82245    +1109     
  Branches    36374    37483    +1109     
==========================================
+ Hits        67481    67607     +126     
- Misses      13308    14291     +983     
  Partials      347      347              
Flag Coverage Δ
flow 84.36% <ø> (-0.05%) ⬇️
unit 55.77% <82.00%> (-0.58%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Base automatically changed from dax-ctrie-refactor to master August 13, 2026 06:34
memark
memark previously approved these changes Aug 13, 2026
@daxhuiberts

Copy link
Copy Markdown
Collaborator Author

@memark Can you re-✅ ? Master had some stuff added.

@daxhuiberts
daxhuiberts enabled auto-merge August 14, 2026 11:38
@sonarqubecloud

Copy link
Copy Markdown

@daxhuiberts
daxhuiberts added this pull request to the merge queue Aug 14, 2026
Merged via the queue into master with commit 1847e3f Aug 14, 2026
59 checks passed
@daxhuiberts
daxhuiberts deleted the dax-ctrie-relocate branch August 14, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants