Skip to content

[8.2] Fix Profile Print on Missing Value - [MOD-10560]#9049

Merged
GuyAv46 merged 2 commits into8.2from
guyav-MOD-10560-8.2
Apr 14, 2026
Merged

[8.2] Fix Profile Print on Missing Value - [MOD-10560]#9049
GuyAv46 merged 2 commits into8.2from
guyav-MOD-10560-8.2

Conversation

@GuyAv46
Copy link
Copy Markdown
Collaborator

@GuyAv46 GuyAv46 commented Apr 14, 2026

Describe the changes in the pull request

8.2 variant of #9051

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

Note

Low Risk
Low risk: changes only FT.PROFILE iterator printing for missing-field predicates and adds coverage; no query execution or index mutation logic is modified.

Overview
Fixes FT.PROFILE iterator output for ismissing(@field) queries by detecting FIELD_EXPIRATION_MISSING readers and printing a dedicated Type: MISSING entry including the missing field name.

Adds a regression test covering both ismissing(@t) and -ismissing(@t) to ensure the profile output includes the expected MISSING iterator (and nesting under NOT).

Reviewed by Cursor Bugbot for commit 6f0f9d3. Bugbot is set up for automated code reviews on this repo. Configure here.

@GuyAv46 GuyAv46 requested a review from raz-mon April 14, 2026 10:18
@GuyAv46 GuyAv46 added the bug label Apr 14, 2026
@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented Apr 14, 2026

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3bbb26b. Configure here.

Comment thread tests/pytests/test_profile.py Outdated
actual_res = conn.execute_command('ft.profile', 'idx', 'search', 'query', '-ismissing(@t)', 'nocontent')
env.assertEqual(actual_res[0], [1, '1'])
env.assertEqual(actual_res[1][1][0][3], ['Type', 'NOT', 'Number of reading operations', 2, 'Child iterator',
['Type', 'MISSING', 'Field', 't', 'Number of reading operations', 2, 'Estimated number of matches', 1]])
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Release notes checkbox not marked for user-facing fix

Low Severity

This PR fixes a user-facing bug where FT.PROFILE output was missing type information for ismissing() queries, but neither release notes checkbox in the PR description is checked. Per project rules, a concise release note is warranted. Suggested release note: "Fixed FT.PROFILE output for ismissing() queries to correctly display the MISSING iterator type and associated field name."

Additional Locations (1)
Fix in Cursor Fix in Web

Triggered by project rule: Please assist in writing a GitHub release note for this PR, which is concise and focused on the user impact.

Reviewed by Cursor Bugbot for commit 3bbb26b. Configure here.

Comment thread tests/pytests/test_profile.py Outdated
@sonarqubecloud
Copy link
Copy Markdown

@GuyAv46 GuyAv46 enabled auto-merge April 14, 2026 12:47
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.93%. Comparing base (24fb917) to head (6f0f9d3).
⚠️ Report is 3 commits behind head on 8.2.

Additional details and impacted files
@@            Coverage Diff             @@
##              8.2    #9049      +/-   ##
==========================================
- Coverage   89.01%   88.93%   -0.08%     
==========================================
  Files         260      260              
  Lines       42093    42093              
  Branches     3851     3851              
==========================================
- Hits        37468    37435      -33     
- Misses       4576     4609      +33     
  Partials       49       49              
Flag Coverage Δ
flow 82.14% <100.00%> (-0.45%) ⬇️
unit 46.75% <0.00%> (-0.02%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 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.

@GuyAv46 GuyAv46 added this pull request to the merge queue Apr 14, 2026
Merged via the queue into 8.2 with commit 3c61a97 Apr 14, 2026
35 checks passed
@GuyAv46 GuyAv46 deleted the guyav-MOD-10560-8.2 branch April 14, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants