Skip to content

[MOD-19338] query_eval: port tag node evaluation to Rust - #11789

Merged
gdesmott merged 1 commit into
masterfrom
gdesmott-query-eval-tag-rs
Oct 6, 2026
Merged

gdesmott merged 1 commit into
masterfrom
gdesmott-query-eval-tag-rs

Conversation

@gdesmott

@gdesmott gdesmott commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

  1. Current: QN_TAG is the last query node type the Rust evaluator does not handle; it delegates it to the C dispatcher.
  2. Change: Add a Rust evaluator for tag nodes — exact, phrase, prefix, suffix, contains and wildcard matches. It is not wired into the dispatcher yet, so tag nodes are still evaluated by C.
  3. Outcome: Internal-only, no behavior change. Lands the Rust implementation on its own so it can be reviewed separately from the switch-over in [MOD-14886] Evaluate tag query nodes in Rust #11206.

Which additional issues this PR fixes

  1. N/A

Main objects this PR modified

  1. query_eval::nodes::tag — new Rust evaluator for QN_TAG, including the suffix-trie lookups and their timeout handling; marked dead_code until [MOD-14886] Evaluate tag query nodes in Rust #11206 dispatches to it.
  2. ffi bindings — exposes the tag-index suffix and reader functions the evaluator needs.

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

If a release note is required (bug fix / new feature / enhancement), describe the user impact of this PR in the title.

@github-actions github-actions Bot added the size:L label Oct 5, 2026
@gdesmott gdesmott changed the title query_eval: port tag node evaluation to Rust [MOD-19338] query_eval: port tag node evaluation to Rust Oct 5, 2026
@gdesmott
gdesmott force-pushed the gdesmott-query-eval-tag-rs branch from ebf620c to a296e12 Compare October 5, 2026 15:05
@codecov

codecov Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0.99751% with 397 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.19%. Comparing base (425635b) to head (8e37292).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/redisearch_rs/query_eval/src/nodes/tag.rs 0.00% 397 Missing ⚠️

❌ Your project check has failed because the head coverage (83.14%) is below the adjusted base coverage (83.17%). You can increase the head coverage or adjust the Removed Code Behavior.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11789      +/-   ##
==========================================
- Coverage   84.22%   83.19%   -1.03%     
==========================================
  Files         650      675      +25     
  Lines       85392    86831    +1439     
  Branches    39637    41076    +1439     
==========================================
+ Hits        71924    72242     +318     
- Misses      13104    14217    +1113     
- Partials      364      372       +8     
Flag Coverage Δ
flow 84.56% <ø> (-0.05%) ⬇️
unit 58.69% <0.99%> (-0.60%) ⬇️

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.

@gdesmott
gdesmott force-pushed the gdesmott-query-eval-tag-rs branch from a296e12 to c45cd91 Compare October 6, 2026 10:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T10:41:46.374230Z 8e37292 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c45cd9180f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Implement exact, phrase, prefix, suffix, contains, and wildcard tag
evaluation in Rust.

The dispatcher keeps delegating tag nodes to C for now, so the new code
is not reachable yet; the next change switches it over.
@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

@gdesmott
gdesmott added this pull request to the merge queue Oct 6, 2026
Merged via the queue into master with commit d014291 Oct 6, 2026
59 of 61 checks passed
@gdesmott
gdesmott deleted the gdesmott-query-eval-tag-rs branch October 6, 2026 11:57
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