Repository navigation
Grep prefers files with lessons for matched definitions - #1433
Merged
Merged
Conversation
A source-ordered file slice can omit a current link for an exact result. Verify links and their revisions before selecting the lesson files. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Use bounded reads of link and memory metadata so a deleted or high-sensitivity row cannot displace a readable lesson. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category
Changelog entry
Indexed grep prefers files with current lessons linked to matched definitions when choosing which files to read for lessons.
Why
Grep chose files for the lesson read in source order. A response could include an exact definition and omit its linked lesson when earlier files used every slot.
Scope and risk
On trunk, check links to named matches against the indexed revisions and eligible memory heads. The metadata reads use the same visibility checks as
memory.for_fileand never load memory values. Both statements share part of the existing enrichment deadline and have result bounds. A verification failure keeps the original file order. The normal lesson read checks memory state again before serving excerpts.Compatibility, rollout and rollback
Tests
AI assistance in the code
Checklist