Repository navigation
Grep matches literal line endings in indexed source - #1439
Merged
Merged
Conversation
Keep retained terminators for exact alternatives that request them, including the fallback scan for an uncovered literal. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Use the indexed file line count at the same revision to distinguish a real line feed from a synthetic one. Keep ordinary literals on the direct substring path. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Use live file metadata from the same revision for each line and keep projected excerpts on ordinary literal matching. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Filter projected chunks out of ending-only pools and carry the same file revision proof through skeleton recovery. 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
Grep matches exact LF and CRLF terminators in indexed lines and preserves those matches when prioritizing literal alternatives.
Why
Grep stripped line endings before matching literals and excluded any literal with a newline from first-page prioritization. A batch could return only generic hits even when an exact, line-terminated alternative matched indexed tests.
Scope and risk
Match a terminal newline against retained physical source in both the first scan and the fallback scan for uncovered alternatives. Verify the coordinate against the LF count from the same indexed file revision. This rejects artificial line endings on the tail of an oversized slice. Projected notebook and reference text keeps ordinary literal matching. Physical-only searches skip ineligible chunks before the pool limit. Source recovery carries the verified line count to raw chunks at the same revision. Ordinary literals use the direct substring check. Match text excludes the terminator.
Compatibility, rollout and rollback
Tests
AI assistance in the code
Checklist