Skip to content

[MOD-14886] Evaluate tag query nodes in Rust - #11206

Merged
gdesmott merged 3 commits into
masterfrom
MOD-14886-query-eval-tag-node
Oct 6, 2026
Merged

gdesmott merged 3 commits into
masterfrom
MOD-14886-query-eval-tag-node

Conversation

@gdesmott

@gdesmott gdesmott commented Aug 27, 2026 •

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

  1. Current: Tag nodes are the last node type the Rust evaluator delegates to the C dispatcher. The Rust tag evaluator lands, unused, in [MOD-19338] query_eval: port tag node evaluation to Rust #11789, which this PR is stacked on.
  2. Change: Dispatch tag nodes to the Rust evaluator. With no node type left for C, the Rust fallback to C, the C Query_EvalNode dispatcher, the C tag evaluator and its tag_strtolower helper are removed. The existing integration/tag.rs tests now exercise the Rust implementation.
  3. Outcome: Internal-only Rust migration with no intended behavior change; every tag query (FT.SEARCH, FT.AGGREGATE, hybrid, cluster shards) now runs through the Rust evaluator, completing the removal of the C query node evaluator.

Which additional issues this PR fixes

  1. MOD-14886

Main objects this PR modified

  1. query_eval::eval_node — dispatches QN_TAG to Rust; the catch-all delegation to C is gone.
  2. C dispatcher — Query_EvalNode, its Query_EvalNode_Rs entry point and the EvalConfig handle are removed.
  3. C tag evaluation in src/query.c and tag_strtolower — removed, with the string_utils tests that used tag_strtolower as an oracle; tag normalization keeps its own Rust coverage.

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.

@gdesmott
gdesmott force-pushed the MOD-14886-query-eval-tag-node branch from 43ada8f to b1e0ff8 Compare August 31, 2026 06:57
@codecov

codecov Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.57%. Comparing base (425635b) to head (0a70eea).
⚠️ Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11206      +/-   ##
==========================================
- Coverage   84.22%   83.57%   -0.66%     
==========================================
  Files         650      675      +25     
  Lines       85392    86633    +1241     
  Branches    39637    41048    +1411     
==========================================
+ Hits        71924    72400     +476     
- Misses      13104    13861     +757     
- Partials      364      372       +8     
Flag Coverage Δ
flow 84.51% <ø> (-0.10%) ⬇️
unit 59.17% <100.00%> (-0.13%) ⬇️

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 MOD-14886-query-eval-tag-node branch 3 times, most recently from 7ef7e1b to 5945beb Compare September 28, 2026 13:47
@github-actions github-actions Bot added size:XL and removed size:L labels Sep 28, 2026
@gdesmott
gdesmott force-pushed the MOD-14886-query-eval-tag-node branch from 5945beb to 0c9c110 Compare September 28, 2026 14:08
@gdesmott gdesmott added action:run-benchmark bench:vs-master Use master as baseline when comparing benchmarks labels Sep 28, 2026
@fcostaoliveira

Copy link
Copy Markdown
Contributor

Automated performance analysis summary

This comment was automatically generated given there is performance data available.

Environment:

  • Triggering env: circleci

Architecture: x86_64 — branch-over-branch

Deployment: oss-standalone

In summary:

  • Detected a total of 3 stable tests between versions.
  • Detected a total of 1 highly unstable benchmarks (1 baseline).
  • Detected a total of 1 improvements above the improvement water line.

You can check a comparison in detail via the grafana link

Performance Improvements - Comparison between master and MOD-14886-query-eval-tag-node.

Time Period from a month ago. (environment used: oss-standalone)

Test Case Baseline master (median obs. +- std.dev) Comparison MOD-14886-query-eval-tag-node (median obs. +- std.dev) % change (higher-better) Note
search-expire-doc-json-10-milliseconds 18717 +- 1.5% (20 datapoints) 33719 80.2% IMPROVEMENT

Performance Regressions and Issues - Comparison between master and MOD-14886-query-eval-tag-node.

Time Period from a month ago. (environment used: oss-standalone)

Test Case Baseline master (median obs. +- std.dev) Comparison MOD-14886-query-eval-tag-node (median obs. +- std.dev) % change (higher-better) Note
search-filtering-tag-numeric 4058 +- 16.8% UNSTABLE (20 datapoints) 4372 7.7% UNSTABLE (baseline high variance); server: FT.AGGREGATE p50 decreased 15.5% (baseline CV=27.6%); client: client latency stable; neither server nor client side confirms regression
Tests with No Significant Changes (3 tests)

Tests with No Significant Changes

Test Case Baseline master (median obs. +- std.dev) Comparison MOD-14886-query-eval-tag-node (median obs. +- std.dev) % change (higher-better) Note
hybrid-arxiv-titles-384-angular-rrf-text-vector 3256 +- 3.6% (20 datapoints) 3070 -5.7% potential REGRESSION
vecsim-arxiv-titles-384-angular-filters-m16-ef-128-fulltext-filter 8738 +- 2.8% (20 datapoints) 8744 0.1% No Change
vecsim-arxiv-titles-384-angular-filters-m16-ef-128-numeric-filter 2769 +- 4.1% (20 datapoints) 2844 2.7% No Change

Architecture: aarch64 — branch-over-branch

⚠️ No aarch64 benchmark data found on branch MOD-14886-query-eval-tag-node. This module may not have ARM CI runners yet; consider adding one or removing aarch64 from the --architectures list. Cross-arch delta skipped.

@fcostaoliveira

fcostaoliveira commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Automated performance analysis summary

This comment was automatically generated given there is performance data available.

Environment:

  • Triggering env: circleci

Architecture: x86_64 — branch-over-branch

Deployment: oss-standalone

In summary:

  • Detected a total of 27 stable tests between versions.
  • Detected a total of 14 highly unstable benchmarks (14 baseline).
  • Detected a total of 16 improvements above the improvement water line.
  • Detected a total of 14 regressions bellow the regression water line 8.0%.

You can check a comparison in detail via the grafana link

Performance Improvements - Comparison between master and MOD-14886-query-eval-tag-node.

Time Period from a month ago. (environment used: oss-standalone)

Test Case Baseline master (median obs. +- std.dev) Comparison MOD-14886-query-eval-tag-node (median obs. +- std.dev) % change (higher-better) Note
ftsb-1M-enwiki_abstract-hashes-fulltext-simple-1word-query 12752 +- 6.6% (20 datapoints) 20690 62.3% IMPROVEMENT
search-aggregate-post-filter-simple.yml 63849 +- 9.0% (20 datapoints) 102609 60.7% waterline=9.0%. IMPROVEMENT
ftsb-1M-nyc_taxis-hashes-load 29993 +- 2.9% (20 datapoints) 42471 41.6% IMPROVEMENT
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-tags-duedate-k50 72 +- 8.0% (20 datapoints) 101 40.9% waterline=8.0%. IMPROVEMENT
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-tags-k50 84 +- 9.1% (20 datapoints) 117 39.5% waterline=9.1%. IMPROVEMENT
ftsb-10K-enwiki_abstract-hashes-fulltext-sortby 1116 +- 7.1% (20 datapoints) 1541 38.1% IMPROVEMENT
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-star-offset500-k50 38 +- 4.5% (20 datapoints) 52 36.4% IMPROVEMENT
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-intersection-query 4945 +- 5.9% (20 datapoints) 6550 32.5% IMPROVEMENT
ftsb-10K-enwiki_pages-hashes-fulltext-mixed_simple-1word-query_write_1_to_read_20.yml 1929 +- 3.7% (20 datapoints) 2492 29.2% IMPROVEMENT
ftsb-10K-enwiki_abstract-hashes-term-prefix 26882 +- 3.5% (20 datapoints) 34278 27.5% IMPROVEMENT
search-ftsb-1700K-docs-union-iterators-q3 33 +- 0.6% (20 datapoints) 42 26.4% IMPROVEMENT
search-ftsb-370K-docs-union-iterators-q4 35 +- 1.0% (20 datapoints) 41 18.2% IMPROVEMENT
search-expire-numeric-field-1000-seconds 14 +- 2.1% (20 datapoints) 16 14.8% IMPROVEMENT
ftsb-1K-enwiki_abstract-hashes-term-contains 26640 +- 4.9% (20 datapoints) 30245 13.5% IMPROVEMENT
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-intersection-query-non-sortable 86 +- 2.7% (20 datapoints) 95 9.9% IMPROVEMENT
ftsb-10K-enwiki_abstract-hashes-term-suffix-withsuffixtrie 76442 +- 3.6% (20 datapoints) 83705 9.5% IMPROVEMENT

Performance Regressions and Issues - Comparison between master and MOD-14886-query-eval-tag-node.

Time Period from a month ago. (environment used: oss-standalone)

Test Case Baseline master (median obs. +- std.dev) Comparison MOD-14886-query-eval-tag-node (median obs. +- std.dev) % change (higher-better) Note
search-vector-field-update 12692 +- 5.6% (16 datapoints) 7848.0 -38.2% REGRESSION
ftsb-10K-multivalue-numeric-json 8238 +- 4.8% (20 datapoints) 5219.0 -36.6% REGRESSION
search-ftsb-arxiv-titles-384-angular-filters-m16-ef-128-json-load 5813 +- 6.8% (20 datapoints) 3736.0 -35.7% REGRESSION
search-high-cardinality-negation-term-comparison_union_all_other_terms 244 +- 11.3% UNSTABLE (20 datapoints) 160.0 -34.4% UNSTABLE (baseline high variance); server: FT.SEARCH p50 decreased 32.3% (baseline CV=3.8%); client: Latency increased 52.3% (baseline CV=12.2%); only client side confirms regression (server side stable) - insufficient evidence
search-numeric-optimize 23045 +- 5.3% (20 datapoints) 15226.0 -33.9% REGRESSION
ftsb-1M-nyc_taxis-ftadd-load 40011 +- 7.0% (20 datapoints) 28778.0 -28.1% REGRESSION
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-tags-duedate-distinct-k50 102 +- 12.0% UNSTABLE (20 datapoints) 80.0 -21.5% UNSTABLE (baseline high variance); server: FT.AGGREGATE p50 increased 43.8% (baseline CV=16.7%); client: OverallQuantiles.allCommands.q50 decreased 10.3% (baseline CV=16.0%); only server side confirms regression (client side stable) - insufficient evidence
search-ftsb-5200K-docs-union-iterators-q1 4.2 +- 5.9% (20 datapoints) 3.3 -20.0% REGRESSION
ftsb-10K-enwiki_pages-hashes-load 76122 +- 8.2% (20 datapoints) 61279.0 -19.5% waterline=8.2%. REGRESSION
search-geo 3346 +- 3.8% (20 datapoints) 2834.0 -15.3% REGRESSION
search-ftsb-5500K-docs-union-iterators-q2 6.0 +- 6.4% (20 datapoints) 5.3 -11.6% REGRESSION
ftsb-10K-singlevalue-numeric-json 4113 +- 6.2% (20 datapoints) 3685.0 -10.4% REGRESSION
search-numeric-sortby-desc-optimize 556 +- 9.5% (20 datapoints) 502.0 -9.7% waterline=9.5%. REGRESSION
search-expire-doc-10-milliseconds 17 +- 8.5% (20 datapoints) 16.0 -9.4% waterline=8.5%. REGRESSION
search-numeric-sortby-optimize 486 +- 6.2% (20 datapoints) 440.0 -9.4% REGRESSION
search-vector-numeric-partial-update-knn-mixed 835 +- 6.8% (18 datapoints) 766.0 -8.2% REGRESSION
search-filtering-tag-numeric 3996 +- 14.2% UNSTABLE (20 datapoints) 3825.0 -4.3% UNSTABLE (baseline high variance); server: FT.AGGREGATE p50 decreased 47.7% (baseline CV=26.0%); client: client latency stable; neither server nor client side confirms regression
search-ftsb-1M-enwiki_abstract-hashes-fulltext-simple-1word-query-non-sortable 170 +- 10.6% UNSTABLE (20 datapoints) 167.0 -1.7% UNSTABLE (baseline high variance); server: p50 latency stable; client: client latency stable; neither server nor client side confirms regression
search-numeric 21693 +- 16.4% UNSTABLE (20 datapoints) 21793.0 0.5% UNSTABLE (baseline high variance); server: FT.SEARCH p50 decreased 16.9% (baseline CV=12.4%); client: client latency stable; neither server nor client side confirms regression
search-ftsb-1M-enwiki_abstract-hashes-fulltext-simple-1word-query-one-indexed-field 22059 +- 12.6% UNSTABLE (20 datapoints) 23125.0 4.8% UNSTABLE (baseline high variance); server: FT.SEARCH p50 decreased 13.7% (baseline CV=5.9%); client: client latency stable; neither server nor client side confirms regression
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-union-query-non-sortable 1373 +- 10.4% UNSTABLE (20 datapoints) 1521.0 10.8% UNSTABLE (baseline high variance); server: FT.SEARCH p50 decreased 5.8% (baseline CV=13.1%); client: client latency stable; neither server nor client side confirms regression
search-ftsb-1M-enwiki_abstract-hashes-gc 129 +- 10.4% UNSTABLE (20 datapoints) 145.0 12.1% UNSTABLE (baseline high variance); server: p50 latency stable; client: Latency increased 48.8% (baseline CV=23.5%); only client side confirms regression (server side stable) - insufficient evidence
hybrid-arxiv-titles-384-angular-linear-text-range 6.2 +- 14.2% UNSTABLE (20 datapoints) 7.0 14.3% UNSTABLE (baseline high variance); server: p50 latency stable; client: Latency decreased 13.1% (baseline CV=14.8%); neither server nor client side confirms regression
hybrid-arxiv-titles-384-angular-rrf-tag-range 6.1 +- 14.9% UNSTABLE (20 datapoints) 7.0 14.9% UNSTABLE (baseline high variance); server: p50 latency stable; client: Latency decreased 13.3% (baseline CV=15.2%); neither server nor client side confirms regression
search-dropindex-keepdocs-gil-writer-contention 12044 +- 27.4% UNSTABLE (20 datapoints) 15020.0 24.7% UNSTABLE (baseline high variance); server: p50 latency stable; client: OverallQuantiles.allCommands.q50 decreased 16.2% (baseline CV=32.9%); neither server nor client side confirms regression
search-numeric-sortby-desc 20747 +- 17.1% UNSTABLE (20 datapoints) 28102.0 35.5% UNSTABLE (baseline high variance); server: FT.SEARCH p50 decreased 5.8% (baseline CV=13.2%); client: Latency increased 46.0% (baseline CV=0.0%); only client side confirms regression (server side stable) - insufficient evidence
search-numeric-sortby 21586 +- 21.4% UNSTABLE (20 datapoints) 30351.0 40.6% UNSTABLE (baseline high variance); server: FT.SEARCH p50 decreased 16.2% (baseline CV=11.7%); client: client latency stable; neither server nor client side confirms regression
search-groupby-collect-10K-entity-events-json-cached-sortby-fields-explicit-k50 0.30 +- 34.0% UNSTABLE (20 datapoints) 12.0 4008.5% UNSTABLE (baseline high variance); server: FT.AGGREGATE p50 decreased 39.3% (baseline CV=8.5%); client: OverallQuantiles.allCommands.q50 increased 18.5% (baseline CV=31.0%); only client side confirms regression (server side stable) - insufficient evidence
Tests with No Significant Changes (27 tests)

Tests with No Significant Changes

Test Case Baseline master (median obs. +- std.dev) Comparison MOD-14886-query-eval-tag-node (median obs. +- std.dev) % change (higher-better) Note
ftsb-10K-enwiki_abstract-hashes-term-suffix 35436 +- 4.7% (20 datapoints) 34119 -3.7% potential REGRESSION
ftsb-10K-enwiki_abstract-hashes-term-wildcard 53909 +- 4.4% (20 datapoints) 51568 -4.3% potential REGRESSION
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-union-query 26855 +- 3.8% (20 datapoints) 27622 2.9% No Change
ftsb-1M-enwiki_abstract-hashes-load 24905 +- 6.4% (20 datapoints) 24783 -0.5% No Change
hybrid-arxiv-titles-384-angular-linear-numeric-vector 2345 +- 3.6% (20 datapoints) 2417 3.1% potential IMPROVEMENT
hybrid-arxiv-titles-384-angular-rrf-text-vector 3189 +- 3.6% (20 datapoints) 3241 1.6% No Change
search-expire-doc-1000-seconds 19 +- 9.8% (20 datapoints) 18 -2.2% waterline=9.8%. No Change
search-expire-doc-50-50-10-milliseconds 252 +- 0.3% (20 datapoints) 254 0.7% No Change
search-expire-doc-json-10-milliseconds 34852 +- 4.6% (20 datapoints) 34250 -1.7% No Change
search-expire-doc-multi-index-10-milliseconds 133 +- 0.3% (20 datapoints) 134 0.6% No Change
search-expire-numeric-field-10-milliseconds 14 +- 2.4% (20 datapoints) 14 -0.1% No Change
search-expire-write-read-concurrent 98 +- 1.2% (20 datapoints) 102 4.1% potential IMPROVEMENT
search-filtering-tag-numeric-filter-pipeline 36551 +- 4.7% (20 datapoints) 36457 -0.3% No Change
search-ftsb-10K-enwiki_abstract-hashes-fulltext-aggregate-sortby-limit-0-100 8911 +- 2.0% (20 datapoints) 8743 -1.9% No Change
search-ftsb-10K-enwiki_abstract-hashes-fulltext-search-sortby-limit-0-100 8619 +- 2.4% (20 datapoints) 9052 5.0% potential IMPROVEMENT
search-ftsb-10K-enwiki_abstract-hashes-term-withoutsuffix-trie 51006 +- 3.5% (20 datapoints) 50516 -1.0% No Change
search-ftsb-10K-enwiki_abstract-hashes-term-withsuffix-trie 51415 +- 3.9% (20 datapoints) 48204 -6.2% potential REGRESSION
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-explicit-k50 70 +- 9.4% (20 datapoints) 65 -8.1% waterline=9.4%. potential REGRESSION
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-tags-distinct-k50 116 +- 8.6% (20 datapoints) 112 -3.6% waterline=8.6%. potential REGRESSION
search-groupby-collect-10K-entity-events-json-cached-sortby-fields-star-offset500-k50 32 +- 5.8% (20 datapoints) 33 1.6% No Change
search-hfe-write-read-concurrent 100 +- 1.6% (20 datapoints) 100 -0.0% No Change
search-high-cardinality-negation-term-baseline 354 +- 2.9% (20 datapoints) 352 -0.5% No Change
search-persist-doc-1000-seconds 138 +- 0.2% (20 datapoints) 138 0.0% No Change
search-vector-numeric-partial-update 12319 +- 7.7% (13 datapoints) 11687 -5.1% potential REGRESSION
vecsim-arxiv-titles-384-angular-filters-m16-ef-128-fulltext-filter 8558 +- 3.0% (20 datapoints) 8383 -2.0% No Change
vecsim-arxiv-titles-384-angular-filters-m16-ef-128-numeric-filter 2594 +- 5.0% (20 datapoints) 2552 -1.6% No Change
vecsim-arxiv-titles-384-angular-filters-m16-ef-128-tag-filter 68274 +- 5.0% (20 datapoints) 63357 -7.2% potential REGRESSION

Architecture: aarch64 — branch-over-branch

Deployment: oss-standalone

In summary:

  • Detected a total of 50 stable tests between versions.
  • Detected a total of 12 highly unstable benchmarks (12 baseline).
  • Latency analysis confirmed regressions in 1 of the unstable tests:
  • Detected a total of 1 improvements above the improvement water line.
  • Detected a total of 1 regressions bellow the regression water line 8.0%.

You can check a comparison in detail via the grafana link

Performance Improvements - Comparison between master and MOD-14886-query-eval-tag-node.

Time Period from a month ago. (environment used: oss-standalone)

Test Case Baseline master (median obs. +- std.dev) Comparison MOD-14886-query-eval-tag-node (median obs. +- std.dev) % change (higher-better) Note
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-tags-duedate-distinct-k50 70 +- 9.7% (20 datapoints) 80 14.2% waterline=9.7%. IMPROVEMENT

Performance Regressions and Issues - Comparison between master and MOD-14886-query-eval-tag-node.

Time Period from a month ago. (environment used: oss-standalone)

Test Case Baseline master (median obs. +- std.dev) Comparison MOD-14886-query-eval-tag-node (median obs. +- std.dev) % change (higher-better) Note
search-vector-numeric-partial-update-knn-mixed 702 +- 11.9% UNSTABLE (19 datapoints) 604.00 -13.9% UNSTABLE (baseline high variance); server: FT.SEARCH p50 decreased 10.5% (baseline CV=31.7%); client: Latency increased 7.0% (baseline CV=4.8%); neither server nor client side confirms regression
search-numeric-sortby-optimize 486 +- 6.2% (20 datapoints) 440.00 -9.4% REGRESSION
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-union-query-non-sortable 1373 +- 10.4% UNSTABLE (20 datapoints) 1246.00 -9.2% UNSTABLE (baseline high variance); server: FT.SEARCH p50 increased 11.8% (baseline CV=15.0%); client: OverallQuantiles.allCommands.q50 increased 13.2% (baseline CV=10.9%); confidence=LOW (FT.SEARCH baseline CV=8.9%; FT.SEARCH p99 -4.2% (stable baseline, minor change); CV=coefficient of variation (data stability: <30% stable, 30-50% moderate, >50% unstable))
search-ftsb-1M-enwiki_abstract-hashes-gc 129 +- 10.4% UNSTABLE (20 datapoints) 118.00 -8.9% UNSTABLE (baseline high variance); server: p50 latency stable; client: Latency decreased 100.0% (baseline CV=10.6%); neither server nor client side confirms regression
search-numeric-sortby 15522 +- 19.2% UNSTABLE (20 datapoints) 14911.00 -3.9% UNSTABLE (baseline high variance); server: FT.SEARCH p50 increased 7.4% (baseline CV=16.3%); client: client latency stable; neither server nor client side confirms regression
search-ftsb-1M-enwiki_abstract-hashes-fulltext-simple-1word-query-one-indexed-field 23547 +- 10.8% UNSTABLE (20 datapoints) 23125.00 -1.8% UNSTABLE (baseline high variance); server: p50 latency stable; client: client latency stable; neither server nor client side confirms regression
search-dropindex-keepdocs-gil-writer-contention 16358 +- 23.4% UNSTABLE (20 datapoints) 16249.00 -0.7% UNSTABLE (baseline high variance); server: p50 latency stable; client: client latency stable; neither server nor client side confirms regression
search-filtering-tag-numeric 5069 +- 12.1% UNSTABLE (20 datapoints) 5045.00 -0.5% UNSTABLE (baseline high variance); server: p50 latency stable; client: client latency stable; neither server nor client side confirms regression
search-numeric-sortby-desc 20747 +- 17.1% UNSTABLE (20 datapoints) 21916.00 5.6% UNSTABLE (baseline high variance); server: p50 latency stable; client: Latency decreased 5.3% (baseline CV=20.1%); neither server nor client side confirms regression
search-vector-numeric-partial-update 7430 +- 16.5% UNSTABLE (18 datapoints) 7949.00 7.0% UNSTABLE (baseline high variance); server: hset p50 decreased 50.0% (baseline CV=32.9%); client: Latency decreased 6.5% (baseline CV=15.2%); neither server nor client side confirms regression
search-vector-field-update 6806 +- 108.7% UNSTABLE (14 datapoints) 7848.00 15.3% UNSTABLE (baseline high variance); regression blocked due to unstable client latency data; server: p50 latency stable; client: Latency UNSTABLE (baseline CV=52.1% - data too noisy for reliable analysis); neither server nor client side confirms regression
search-groupby-collect-10K-entity-events-json-cached-sortby-fields-explicit-k50 0.30 +- 34.0% UNSTABLE (20 datapoints) 0.36 21.6% UNSTABLE (baseline high variance); server: p50 latency stable; client: client latency stable; neither server nor client side confirms regression
search-numeric 16278 +- 19.3% UNSTABLE (20 datapoints) 21793.00 33.9% UNSTABLE (baseline high variance); server: FT.SEARCH p50 decreased 25.0% (baseline CV=17.5%); client: Latency decreased 25.3% (baseline CV=17.2%); neither server nor client side confirms regression
Tests with No Significant Changes (50 tests)

Tests with No Significant Changes

Test Case Baseline master (median obs. +- std.dev) Comparison MOD-14886-query-eval-tag-node (median obs. +- std.dev) % change (higher-better) Note
ftsb-10K-enwiki_abstract-hashes-fulltext-sortby 1116 +- 7.1% (20 datapoints) 1135.0 1.7% No Change
ftsb-10K-enwiki_abstract-hashes-term-prefix 26882 +- 3.5% (20 datapoints) 25915.0 -3.6% potential REGRESSION
ftsb-10K-enwiki_abstract-hashes-term-suffix 26462 +- 1.7% (20 datapoints) 26189.0 -1.0% No Change
ftsb-10K-enwiki_abstract-hashes-term-suffix-withsuffixtrie 50342 +- 8.4% (20 datapoints) 49962.0 -0.8% waterline=8.4%. No Change
ftsb-10K-enwiki_abstract-hashes-term-wildcard 39941 +- 4.5% (20 datapoints) 39752.0 -0.5% No Change
ftsb-10K-enwiki_pages-hashes-fulltext-mixed_simple-1word-query_write_1_to_read_20.yml 1929 +- 3.7% (20 datapoints) 1971.0 2.2% No Change
ftsb-10K-enwiki_pages-hashes-load 63526 +- 3.8% (20 datapoints) 61279.0 -3.5% potential REGRESSION
ftsb-10K-multivalue-numeric-json 5406 +- 2.0% (20 datapoints) 5219.0 -3.4% potential REGRESSION
ftsb-10K-singlevalue-numeric-json 2998 +- 1.5% (20 datapoints) 2984.0 -0.5% No Change
ftsb-1K-enwiki_abstract-hashes-term-contains 20888 +- 3.7% (20 datapoints) 20905.0 0.1% No Change
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-intersection-query 4945 +- 5.9% (20 datapoints) 5047.0 2.1% No Change
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-intersection-query-non-sortable 86 +- 2.7% (20 datapoints) 85.0 -0.9% No Change
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-union-query 27009 +- 3.7% (20 datapoints) 27622.0 2.3% No Change
ftsb-1M-enwiki_abstract-hashes-fulltext-simple-1word-query 12752 +- 6.6% (20 datapoints) 12977.0 1.8% No Change
ftsb-1M-enwiki_abstract-hashes-load 24905 +- 6.4% (20 datapoints) 24783.0 -0.5% No Change
ftsb-1M-nyc_taxis-ftadd-load 28051 +- 3.0% (20 datapoints) 28778.0 2.6% No Change
ftsb-1M-nyc_taxis-hashes-load 29993 +- 2.9% (20 datapoints) 30612.0 2.1% No Change
search-aggregate-post-filter-simple.yml 63849 +- 9.0% (20 datapoints) 61590.0 -3.5% waterline=9.0%. potential REGRESSION
search-expire-doc-10-milliseconds 14 +- 2.8% (20 datapoints) 14.0 0.9% No Change
search-expire-doc-1000-seconds 14 +- 1.8% (20 datapoints) 14.0 0.7% No Change
search-expire-doc-50-50-10-milliseconds 252 +- 0.2% (20 datapoints) 252.0 0.2% No Change
search-expire-doc-json-10-milliseconds 17893 +- 0.9% (20 datapoints) 17867.0 -0.1% No Change
search-expire-doc-multi-index-10-milliseconds 133 +- 0.2% (20 datapoints) 133.0 0.0% No Change
search-expire-numeric-field-10-milliseconds 14 +- 2.4% (20 datapoints) 14.0 -0.1% No Change
search-expire-numeric-field-1000-seconds 14 +- 2.1% (20 datapoints) 14.0 -0.3% No Change
search-expire-write-read-concurrent 98 +- 1.2% (20 datapoints) 96.0 -1.3% No Change
search-filtering-tag-numeric-filter-pipeline 26159 +- 3.9% (20 datapoints) 24979.0 -4.5% potential REGRESSION
search-ftsb-10K-enwiki_abstract-hashes-fulltext-aggregate-sortby-limit-0-100 6944 +- 6.7% (20 datapoints) 7009.0 0.9% No Change
search-ftsb-10K-enwiki_abstract-hashes-fulltext-search-sortby-limit-0-100 6993 +- 2.8% (20 datapoints) 6950.0 -0.6% No Change
search-ftsb-10K-enwiki_abstract-hashes-term-withoutsuffix-trie 34546 +- 2.1% (20 datapoints) 33438.0 -3.2% potential REGRESSION
search-ftsb-10K-enwiki_abstract-hashes-term-withsuffix-trie 34431 +- 2.9% (20 datapoints) 33086.0 -3.9% potential REGRESSION
search-ftsb-1700K-docs-union-iterators-q3 33 +- 0.6% (20 datapoints) 33.0 1.0% No Change
search-ftsb-1M-enwiki_abstract-hashes-fulltext-simple-1word-query-non-sortable 169 +- 6.5% (20 datapoints) 167.0 -1.1% No Change
search-ftsb-370K-docs-union-iterators-q4 35 +- 1.0% (20 datapoints) 35.0 0.2% No Change
search-ftsb-5200K-docs-union-iterators-q1 3.4 +- 2.6% (20 datapoints) 3.3 -3.1% potential REGRESSION
search-ftsb-5500K-docs-union-iterators-q2 5.1 +- 3.2% (20 datapoints) 5.3 2.9% No Change
search-ftsb-arxiv-titles-384-angular-filters-m16-ef-128-json-load 3700 +- 3.9% (20 datapoints) 3736.0 1.0% No Change
search-geo 2706 +- 6.0% (20 datapoints) 2834.0 4.7% potential IMPROVEMENT
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-explicit-k50 70 +- 9.4% (20 datapoints) 65.0 -8.1% waterline=9.4%. potential REGRESSION
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-star-offset500-k50 38 +- 4.5% (20 datapoints) 40.0 4.7% potential IMPROVEMENT
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-tags-distinct-k50 83 +- 9.2% (20 datapoints) 86.0 3.2% waterline=9.2%. potential IMPROVEMENT
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-tags-duedate-k50 72 +- 8.0% (20 datapoints) 67.0 -7.3% waterline=8.0%. potential REGRESSION
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-tags-k50 84 +- 9.1% (20 datapoints) 86.0 2.4% waterline=9.1%. No Change
search-groupby-collect-10K-entity-events-json-cached-sortby-fields-star-offset500-k50 32 +- 5.8% (20 datapoints) 33.0 1.6% No Change
search-hfe-write-read-concurrent 98 +- 1.7% (20 datapoints) 97.0 -0.6% No Change
search-high-cardinality-negation-term-baseline 354 +- 2.9% (20 datapoints) 352.0 -0.5% No Change
search-high-cardinality-negation-term-comparison_union_all_other_terms 162 +- 3.9% (20 datapoints) 160.0 -1.3% No Change
search-numeric-optimize 15302 +- 1.7% (20 datapoints) 15226.0 -0.5% No Change
search-numeric-sortby-desc-optimize 491 +- 7.2% (20 datapoints) 468.0 -4.6% potential REGRESSION
search-persist-doc-1000-seconds 138 +- 0.2% (20 datapoints) 138.0 -0.0% No Change

Cross-arch delta on MOD-14886-query-eval-tag-node (x86_64 → aarch64)

Same commit (MOD-14886-query-eval-tag-node) compared across architectures. Positive deltas = aarch64 outperforms x86_64.

In summary:

You can check a comparison in detail via the grafana link

Performance Improvements - Comparison between MOD-14886-query-eval-tag-node and MOD-14886-query-eval-tag-node.

Time Period from a month ago. (environment used: oss-standalone)

Test Case Baseline MOD-14886-query-eval-tag-node (median obs. +- std.dev) Comparison MOD-14886-query-eval-tag-node (median obs. +- std.dev) % change (higher-better) Note
search-groupby-collect-10K-entity-events-json-cached-sortby-fields-star-offset500-k50 30 +- 5.0% (8 datapoints) 33 8.7% IMPROVEMENT

Performance Regressions and Issues - Comparison between MOD-14886-query-eval-tag-node and MOD-14886-query-eval-tag-node.

Time Period from a month ago. (environment used: oss-standalone)

Test Case Baseline MOD-14886-query-eval-tag-node (median obs. +- std.dev) Comparison MOD-14886-query-eval-tag-node (median obs. +- std.dev) % change (higher-better) Note
search-groupby-collect-10K-entity-events-json-cached-sortby-fields-explicit-k50 8.5 +- 21.2% UNSTABLE (7 datapoints) 0.36 -95.7% UNSTABLE (baseline high variance); server: FT.AGGREGATE p50 increased 25.9% (baseline CV=15.3%); client: OverallQuantiles.allCommands.q50 decreased 39.5% (baseline CV=16.7%); only server side confirms regression (client side stable) - insufficient evidence
search-numeric-sortby 29412 +- 13.9% UNSTABLE (8 datapoints) 14911.00 -49.3% UNSTABLE (baseline high variance); server: FT.SEARCH p50 increased 49.6% (baseline CV=12.2%); client: client latency stable; only server side confirms regression (client side stable) - insufficient evidence
search-expire-doc-json-10-milliseconds 34848 +- 2.9% (14 datapoints) 17867.00 -48.7% REGRESSION
search-aggregate-post-filter-simple.yml 102120 +- 5.2% (7 datapoints) 61590.00 -39.7% REGRESSION
search-vector-numeric-partial-update-knn-mixed 955 +- 11.6% UNSTABLE (3 datapoints) 604.00 -36.8% UNSTABLE (baseline high variance); server: FT.SEARCH p50 increased 9.4% (baseline CV=17.3%); hset p50 increased 100.1% (baseline CV=0.0%); client: Latency increased 48.8% (baseline CV=10.6%); confidence=HIGH (FT.SEARCH baseline CV=18.4%; hset baseline CV=6.3%; FT.SEARCH p99 +41.4% (stable baseline); hset p99 0.0% (stable baseline, minor change); CV=coefficient of variation (data stability: <30% stable, 30-50% moderate, >50% unstable))
ftsb-10K-enwiki_abstract-hashes-term-suffix-withsuffixtrie 77203 +- 4.9% (12 datapoints) 49962.00 -35.3% REGRESSION
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-tags-duedate-k50 101 +- 6.7% (7 datapoints) 67.00 -34.2% REGRESSION
search-ftsb-10K-enwiki_abstract-hashes-term-withoutsuffix-trie 50391 +- 4.0% (8 datapoints) 33438.00 -33.6% REGRESSION
search-ftsb-10K-enwiki_abstract-hashes-term-withsuffix-trie 49623 +- 4.2% (8 datapoints) 33086.00 -33.3% REGRESSION
search-vector-numeric-partial-update 11687 +- 3.5% (3 datapoints) 7949.00 -32.0% REGRESSION
search-filtering-tag-numeric-filter-pipeline 36215 +- 3.3% (14 datapoints) 24979.00 -31.0% REGRESSION
ftsb-1M-enwiki_abstract-hashes-fulltext-simple-1word-query 18413 +- 7.8% (9 datapoints) 12977.00 -29.5% REGRESSION
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-tags-k50 120 +- 13.0% UNSTABLE (8 datapoints) 86.00 -27.9% UNSTABLE (baseline high variance); server: FT.AGGREGATE p50 increased 56.9% (baseline CV=19.1%); client: client latency stable; only server side confirms regression (client side stable) - insufficient evidence
ftsb-10K-enwiki_abstract-hashes-fulltext-sortby 1559 +- 3.5% (8 datapoints) 1135.00 -27.2% REGRESSION
ftsb-1K-enwiki_abstract-hashes-term-contains 28532 +- 5.6% (12 datapoints) 20905.00 -26.7% REGRESSION
ftsb-10K-enwiki_abstract-hashes-term-prefix 34556 +- 5.2% (9 datapoints) 25915.00 -25.0% REGRESSION
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-intersection-query 6665 +- 7.6% (8 datapoints) 5047.00 -24.3% REGRESSION
search-expire-numeric-field-1000-seconds 18 +- 9.7% (13 datapoints) 14.00 -24.0% waterline=9.7%. REGRESSION
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-tags-distinct-k50 112 +- 4.8% (7 datapoints) 86.00 -23.7% REGRESSION
search-expire-doc-1000-seconds 18 +- 9.4% (13 datapoints) 14.00 -23.6% waterline=9.4%. REGRESSION
ftsb-10K-enwiki_abstract-hashes-term-suffix 34242 +- 3.7% (11 datapoints) 26189.00 -23.5% REGRESSION
ftsb-10K-enwiki_abstract-hashes-term-wildcard 51646 +- 5.0% (12 datapoints) 39752.00 -23.0% REGRESSION
ftsb-10K-singlevalue-numeric-json 3874 +- 4.6% (8 datapoints) 2984.00 -23.0% REGRESSION
ftsb-1M-nyc_taxis-hashes-load 39455 +- 6.6% (9 datapoints) 30612.00 -22.4% REGRESSION
search-ftsb-10K-enwiki_abstract-hashes-fulltext-search-sortby-limit-0-100 8924 +- 2.2% (12 datapoints) 6950.00 -22.1% REGRESSION
search-ftsb-10K-enwiki_abstract-hashes-fulltext-aggregate-sortby-limit-0-100 8943 +- 3.1% (8 datapoints) 7009.00 -21.6% REGRESSION
search-ftsb-1M-enwiki_abstract-hashes-gc 145 +- 17.3% UNSTABLE (8 datapoints) 118.00 -18.9% UNSTABLE (baseline high variance); server: p50 latency stable; client: Latency decreased 43.2% (baseline CV=25.7%); neither server nor client side confirms regression
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-star-offset500-k50 49 +- 19.3% UNSTABLE (8 datapoints) 40.00 -18.8% UNSTABLE (baseline high variance); server: p50 latency stable; client: client latency stable; neither server nor client side confirms regression
search-ftsb-1700K-docs-union-iterators-q3 39 +- 6.0% (14 datapoints) 33.00 -13.8% REGRESSION
search-ftsb-370K-docs-union-iterators-q4 40 +- 6.2% (14 datapoints) 35.00 -11.6% REGRESSION
ftsb-10K-enwiki_pages-hashes-fulltext-mixed_simple-1word-query_write_1_to_read_20.yml 2213 +- 6.9% (9 datapoints) 1971.00 -10.9% REGRESSION
search-expire-doc-10-milliseconds 16 +- 8.3% (13 datapoints) 14.00 -10.9% waterline=8.3%. REGRESSION
search-numeric-sortby-desc-optimize 522 +- 9.6% (7 datapoints) 468.00 -10.3% waterline=9.6%. REGRESSION
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-union-query-non-sortable 1375 +- 13.7% UNSTABLE (8 datapoints) 1246.00 -9.4% UNSTABLE (baseline high variance); server: FT.SEARCH p50 increased 12.2% (baseline CV=15.1%); client: OverallQuantiles.allCommands.q50 increased 14.3% (baseline CV=12.5%); confidence=LOW (FT.SEARCH baseline CV=13.3%; FT.SEARCH p99 -5.3% (stable baseline, minor change); CV=coefficient of variation (data stability: <30% stable, 30-50% moderate, >50% unstable))
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-intersection-query-non-sortable 94 +- 2.6% (8 datapoints) 85.00 -9.1% REGRESSION
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-explicit-k50 70 +- 10.7% UNSTABLE (7 datapoints) 65.00 -7.2% UNSTABLE (baseline high variance); server: FT.AGGREGATE p50 increased 88.5% (baseline CV=5.4%); client: OverallQuantiles.allCommands.q50 increased 54.2% (baseline CV=5.6%); confidence=HIGH (FT.AGGREGATE baseline CV=5.5%; FT.AGGREGATE p99 +63.0% (stable baseline); CV=coefficient of variation (data stability: <30% stable, 30-50% moderate, >50% unstable))
search-ftsb-1M-enwiki_abstract-hashes-fulltext-simple-1word-query-one-indexed-field 23125 +- 11.6% UNSTABLE (7 datapoints) 23125.00 0.0% UNSTABLE (baseline high variance); server: FT.SEARCH p50 increased 14.6% (baseline CV=6.9%); client: client latency stable; only server side confirms regression (client side stable) - insufficient evidence
search-vector-field-update 7848 +- 15.7% UNSTABLE (3 datapoints) 7848.00 0.0% UNSTABLE (baseline high variance); server: hset p50 increased 100.1% (baseline CV=0.0%); client: client latency stable; only server side confirms regression (client side stable) - insufficient evidence
search-numeric-sortby-desc 21299 +- 22.4% UNSTABLE (8 datapoints) 21916.00 2.9% UNSTABLE (baseline high variance); server: p50 latency stable; client: Latency decreased 32.0% (baseline CV=17.1%); neither server nor client side confirms regression
search-groupby-collect-10K-entity-events-hash-cached-sortby-fields-tags-duedate-distinct-k50 72 +- 12.6% UNSTABLE (8 datapoints) 80.00 10.7% UNSTABLE (baseline high variance); server: FT.AGGREGATE p50 decreased 8.8% (baseline CV=11.3%); client: OverallQuantiles.allCommands.q50 increased 14.6% (baseline CV=25.0%); only client side confirms regression (server side stable) - insufficient evidence
search-numeric 18690 +- 18.1% UNSTABLE (8 datapoints) 21793.00 16.6% UNSTABLE (baseline high variance); server: p50 latency stable; client: Latency increased 30.8% (baseline CV=15.4%); only client side confirms regression (server side stable) - insufficient evidence
search-filtering-tag-numeric 4211 +- 10.8% UNSTABLE (14 datapoints) 5045.00 19.8% UNSTABLE (baseline high variance); server: p50 latency stable; client: Latency decreased 16.6% (baseline CV=11.4%); neither server nor client side confirms regression
search-dropindex-keepdocs-gil-writer-contention 12330 +- 31.3% UNSTABLE (8 datapoints) 16249.00 31.8% UNSTABLE (baseline high variance); server: p50 latency stable; client: OverallQuantiles.allCommands.q50 decreased 28.9% (baseline CV=36.3%); neither server nor client side confirms regression
Tests with No Significant Changes (20 tests)

Tests with No Significant Changes

Test Case Baseline MOD-14886-query-eval-tag-node (median obs. +- std.dev) Comparison MOD-14886-query-eval-tag-node (median obs. +- std.dev) % change (higher-better) Note
ftsb-10K-enwiki_pages-hashes-load 61711 +- 3.2% (11 datapoints) 61279.0 -0.7% No Change
ftsb-10K-multivalue-numeric-json 5335 +- 2.2% (7 datapoints) 5219.0 -2.2% No Change
ftsb-1M-enwiki_abstract-hashes-fulltext-2word-union-query 27328 +- 3.9% (10 datapoints) 27622.0 1.1% No Change
ftsb-1M-enwiki_abstract-hashes-load 24746 +- 7.8% (10 datapoints) 24783.0 0.1% No Change
ftsb-1M-nyc_taxis-ftadd-load 28549 +- 2.3% (7 datapoints) 28778.0 0.8% No Change
search-expire-doc-50-50-10-milliseconds 251 +- 0.4% (13 datapoints) 252.0 0.4% No Change
search-expire-doc-multi-index-10-milliseconds 133 +- 0.4% (11 datapoints) 133.0 -0.0% No Change
search-expire-numeric-field-10-milliseconds 14 +- 1.8% (9 datapoints) 14.0 1.0% No Change
search-expire-write-read-concurrent 101 +- 2.9% (12 datapoints) 96.0 -5.0% potential REGRESSION
search-ftsb-1M-enwiki_abstract-hashes-fulltext-simple-1word-query-non-sortable 165 +- 7.9% (8 datapoints) 167.0 1.7% No Change
search-ftsb-5200K-docs-union-iterators-q1 3.4 +- 2.6% (13 datapoints) 3.3 -2.4% No Change
search-ftsb-5500K-docs-union-iterators-q2 5.1 +- 3.7% (9 datapoints) 5.3 3.3% potential IMPROVEMENT
search-ftsb-arxiv-titles-384-angular-filters-m16-ef-128-json-load 3710 +- 4.2% (12 datapoints) 3736.0 0.7% No Change
search-geo 2748 +- 5.5% (8 datapoints) 2834.0 3.1% potential IMPROVEMENT
search-hfe-write-read-concurrent 100 +- 1.1% (13 datapoints) 97.0 -2.5% No Change
search-high-cardinality-negation-term-baseline 352 +- 4.5% (13 datapoints) 352.0 0.0%
search-high-cardinality-negation-term-comparison_union_all_other_terms 163 +- 4.2% (13 datapoints) 160.0 -1.7% No Change
search-numeric-optimize 15226 +- 1.2% (7 datapoints) 15226.0 0.0%
search-numeric-sortby-optimize 449 +- 5.7% (7 datapoints) 440.0 -2.0% No Change
search-persist-doc-1000-seconds 138 +- 0.3% (13 datapoints) 138.0 -0.0% No Change

@gdesmott
gdesmott force-pushed the MOD-14886-query-eval-tag-node branch from 0c9c110 to 1e9967d Compare September 29, 2026 06:46
@gdesmott
gdesmott force-pushed the MOD-14886-query-eval-tag-node branch 2 times, most recently from d49c45f to 5ae6819 Compare September 29, 2026 12:20
@gdesmott
gdesmott force-pushed the MOD-14886-query-eval-tag-node branch 11 times, most recently from 070e6cd to b27de61 Compare September 30, 2026 14:42
@gdesmott gdesmott changed the title [MOD-14886] Port tag query node evaluation to Rust [MOD-14886] Evaluate tag query nodes in Rust Oct 5, 2026
@gdesmott
gdesmott changed the base branch from master to gdesmott-query-eval-tag-rs October 5, 2026 14:55
@gdesmott gdesmott changed the title [MOD-14886] Evaluate tag query nodes in Rust [MOD-14886] Remove the dead C query node evaluator Oct 5, 2026
@gdesmott
gdesmott force-pushed the MOD-14886-query-eval-tag-node branch from fa73884 to 315cc7c Compare October 5, 2026 15:05
@gdesmott
gdesmott force-pushed the gdesmott-query-eval-tag-rs branch from ebf620c to a296e12 Compare October 5, 2026 15:05
@github-actions github-actions Bot added size:L and removed size:XL labels Oct 5, 2026
@gdesmott
gdesmott force-pushed the MOD-14886-query-eval-tag-node branch from 315cc7c to faba382 Compare October 6, 2026 10:25
@gdesmott
gdesmott force-pushed the gdesmott-query-eval-tag-rs branch from a296e12 to c45cd91 Compare October 6, 2026 10:25
@gdesmott gdesmott changed the title [MOD-14886] Remove the dead C query node evaluator [MOD-14886] Evaluate tag query nodes in Rust Oct 6, 2026
@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-06T12:28:43.807617Z 0a70eea 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.

@gdesmott
gdesmott force-pushed the gdesmott-query-eval-tag-rs branch from c45cd91 to 8e37292 Compare October 6, 2026 10:33
@gdesmott
gdesmott force-pushed the MOD-14886-query-eval-tag-node branch from faba382 to 62e9592 Compare October 6, 2026 10:33
@gdesmott gdesmott removed action:run-benchmark bench:vs-master Use master as baseline when comparing benchmarks labels Oct 6, 2026
Base automatically changed from gdesmott-query-eval-tag-rs to master October 6, 2026 11:57
@gdesmott
gdesmott force-pushed the MOD-14886-query-eval-tag-node branch from 62e9592 to 1e802eb Compare October 6, 2026 12:00
Dispatch tag nodes to the Rust evaluator from the query_eval crate. Tag
was the last node type delegated to C, so the C fallback goes away along
with the C tag evaluator.

The existing integration/tag.rs tests, which used to run against the C
code, now exercise the Rust implementation.
Every node type is now evaluated in Rust and QAST_Iterate drives the Rust
dispatcher directly, so neither the C Query_EvalNode trampoline nor the
Query_EvalNode_Rs entry point it called has any caller left.

Drop both, along with the EvalConfig handle only they used, and bind
QueryEvalCtx from query_ctx.h, where it is defined.
Tag evaluation now normalizes tokens with RSTokenMut::normalize_tag, so
nothing calls the C function any more. Drop its FFI binding and the
string_utils tests that used it as an oracle; the Rust normalization
keeps its own coverage in rs_token and query_eval.
@gdesmott
gdesmott force-pushed the MOD-14886-query-eval-tag-node branch from 1e802eb to 0a70eea Compare October 6, 2026 12:21
@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 6fec366 Oct 6, 2026
61 checks passed
@gdesmott
gdesmott deleted the MOD-14886-query-eval-tag-node branch October 6, 2026 13:59
aradalvand added a commit to aradalvand/RediSearch that referenced this pull request Oct 14, 2026
Master moved tag node evaluation into Rust (MOD-14886, RediSearch#11206), deleting the C
tag evaluator that `Query_EvalTagLexRangeNode` and `tagRangeIterCb` lived
alongside, and removed `TrieMap_IterateRange` as an unused FFI export
(MOD-16055, RediSearch#11785). So the C evaluator this branch added had no home and its
only FFI dependency was gone.

Rather than reinstate the FFI, the walk moves to Rust next to the prefix and
wildcard expansions it mirrors. `trie_rs` kept the Rust range iterator; only the
C-facing wrapper went away, so `eval_lex_range` reads the bounds from the node,
normalizes each one, and walks `TrieMap::range_iter` straight from
`query_eval::nodes::tag`.

That also drops the parts of this branch that only existed to reach the trie
from C: `TagIndex_IterateRangeValues`, `TagIndex_GetIteratorFromTrieMapValue`
and its cpptest, the `TrieMapRangeCallback` typedef, and the triemap_ffi range
module, header entry and test. `src/tag_index.{c,h}`, `test_cpp_tagindex.cpp`
and the whole `triemap_ffi` crate are now identical to master again.

Two details the port had to carry over rather than inherit:

- Bound normalization. `tag_strtolower` is gone, and `RSTokenMut::normalize_tag`
  replaced it for tokens. A bound is a plain string, not a token, so
  `normalize_bound` applies the same two passes, `string_utils::tag::unescape`
  then `tolower_bytes` unless the field is CASESENSITIVE. Reading through
  `CStr::to_bytes` keeps the up-to-NUL truncation the C path had.
- No deadline is installed on the range walk. A pattern walk visits keys it does
  not match, so it needs one; a range descent yields only matching keys, so the
  expansion cap bounds the work and the pipeline owns the deadline, as for every
  other node.

The conflict in the generated `parser.c` is resolved by regenerating it from the
merged `parser.y`; Lemon reports 0 conflicts.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019EcxECuDqmECKPNVsNfXKb
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.

3 participants