Repository navigation
Add 02346_text_index_edge_cases: edge cases for text index push-down - #107385
Conversation
|
Workflow [PR], commit [a2498d3] Summary: ✅ AI ReviewSummaryThis PR adds a stateless regression test for Findings
Final VerdictStatus: Minimum required action: remove the unjustified |
| @@ -0,0 +1,46 @@ | |||
| -- Tags: no-fasttest | |||
There was a problem hiding this comment.
Please don’t tag this no-fasttest unless it depends on something fasttest lacks or is too slow there. This is a tiny two-row stateless regression, and comparable text index tests such as 02346_text_index_match_predicate.sql run without this tag, so keeping it means the coverage this PR adds is skipped in the fast gate.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
@alexbakharew Sure you want to push the various CI scripts with this innocent little test PR? |
|
@rschu1ze no, I do some experiments with LLVM Coverage. I will revert all unrelated changes and merge it finally later today |
Tests `equals()` predicate push-down to text indexes including empty string handling (`optimize_empty_string_comparisons` setting). Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
6378408 to
a2498d3
Compare
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 397 line(s), 57 function(s) across 136 file(s) · Details Top files
|
…ndex-not-used-extra Add 02346_text_index_edge_cases: edge cases for text index push-down
Sanity checks around predicate shapes the text index cannot service, grouped with other text index tests as
02346_text_index_edge_cases.Three cases are covered, all checked via
force_data_skipping_indices='idx_message':equals(message, '')/message == ''- tokenizing''yields no tokens, so the text index has no required token to look up.INDEX_NOT_USEDmust be raised. Exercised withoptimize_empty_string_comparisons = 1so the optimizer rewrite path is covered too.match(message, 'v[0-9]+\.[0-9]+')- the regex has no complete required token to push down (the leadingvis shorter than the alphanumeric boundary), so thematch()codepath declines the index andINDEX_NOT_USEDis raised.Positive sanity counterparts:
match(message, ' release ')andequals(message, 'beta version')both have a complete required token, so the index applies normally.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Version info
26.7.1.122