Skip to content

Conversation

@antiguru
Copy link
Member

@antiguru antiguru commented Feb 9, 2026

Summary

  • Replace IsRegexpMatch { case_insensitive: bool } with two #[sqlfunc] variants: IsRegexpMatchCaseSensitive (~) and IsRegexpMatchCaseInsensitive (~*)
  • Follows the same pattern as IsLikeMatchCaseSensitive/IsLikeMatchCaseInsensitive
  • Remove the old is_regexp_match_dynamic helper function
  • Update the scalar.rs optimization that lowers to unary IsRegexpMatch when the pattern is a literal

🤖 Generated with Claude Code

Replace the `IsRegexpMatch { case_insensitive: bool }` variant with
two separate sqlfunc variants: `IsRegexpMatchCaseSensitive` for `~`
and `IsRegexpMatchCaseInsensitive` for `~*`. This follows the same
pattern as `IsLikeMatchCaseSensitive`/`IsLikeMatchCaseInsensitive`.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Signed-off-by: Moritz Hoffmann <[email protected]>
@antiguru antiguru force-pushed the binary_func_is_regexp_match branch from be87503 to 98857e1 Compare February 9, 2026 14:44
@antiguru antiguru requested a review from ggevay February 9, 2026 14:44
@antiguru antiguru marked this pull request as ready for review February 9, 2026 14:44
@antiguru antiguru requested review from a team as code owners February 9, 2026 14:44
@antiguru antiguru merged commit 6272687 into MaterializeInc:main Feb 9, 2026
134 checks passed
@antiguru antiguru deleted the binary_func_is_regexp_match branch February 9, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants