Repository navigation
Extend the regexp fast-path to anchored literals - #116554
Conversation
Previously, only substring pattern `'lit'` was supported in the fast-path. However, the fast-path can be extended for more simple patterns (starts with, ends with, equals): `'^lit'`, `'lit$'` and `'^lit$'`. This avoids running the re2 engine for such patterns.
|
Workflow [PR], commit [0f70d70] Summary: ✅
AI ReviewSummaryThis PR extends Missing context / blind spots
Final Verdict
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 221/235 (94.04%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Compile time of recompiled translation units305 translation units recompiled, 3036 s compile time in total, 305 of them have a recent master baseline. Median compile-time ratio to the baselines is ×1.10 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
|
📊 Cloud Performance Report ✅ AI verdict: This PR replaces re2 with a direct byte comparison for anchored-literal patterns (^lit, lit$, ^lit$) in match/LIKE/extract; the public and private diffs are identical, so both comments describe the same change. The only flagged query is clickbench Q31, a GROUP BY aggregation that never exercises the regexp path this PR touches. Its -15.7% median is wall-clock variance only — CPU time is flat (3532 vs 3513 ms) — so the deterministic within-envelope no-change is correct and consistent with the diff. No real regressions or improvements attributable to this change appear in the flagged set. clickbench🟢 No significant changes tpch_adapted_1_official🟢 No significant changes Debug info
|

Previously, only substring pattern
'lit'was supported in the fast-path.However, the fast-path can be extended for more simple patterns (starts with, ends with, equals):
'^lit','lit$'and'^lit$'.This avoids initialization and running the RE2 engine for such patterns.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Extend the regexp fast path to simple anchored literals: prefix, suffix, and exact-literal matches.
Workflow [PR]
Sync PR [sync-upstream/pr/116554]