Skip to content

Minor: add tests for regexp_replace and capture groups#21413

Merged
alamb merged 1 commit intoapache:mainfrom
alamb:alamb/regexp_replace_tests
Apr 6, 2026
Merged

Minor: add tests for regexp_replace and capture groups#21413
alamb merged 1 commit intoapache:mainfrom
alamb:alamb/regexp_replace_tests

Conversation

@alamb
Copy link
Copy Markdown
Contributor

@alamb alamb commented Apr 6, 2026

Which issue does this PR close?

Rationale for this change

As suggested by @adriangb #21379 (comment)

Let's add some additional test coverage as we work to optimize regexp_replace

What changes are included in this PR?

Add some tests

Are these changes tested?

yes

Are there any user-facing changes?

No

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Apr 6, 2026
@alamb alamb marked this pull request as ready for review April 6, 2026 17:40
@adriangb
Copy link
Copy Markdown
Contributor

adriangb commented Apr 6, 2026

I feel like this is a place where black box fuzz tests (against DuckDB? sqlite? postgres?) would probably find bugs if there are any.

@alamb
Copy link
Copy Markdown
Contributor Author

alamb commented Apr 6, 2026

I feel like this is a place where black box fuzz tests (against DuckDB? sqlite? postgres?) would probably find bugs if there are any.

Yeah -- that is a good point.

@alamb
Copy link
Copy Markdown
Contributor Author

alamb commented Apr 6, 2026

Since these are just tests, I will merge them in and we can do any additional improvements as follow ons

@alamb alamb added this pull request to the merge queue Apr 6, 2026
Merged via the queue into apache:main with commit 8a2d758 Apr 6, 2026
31 checks passed
@alamb alamb deleted the alamb/regexp_replace_tests branch April 6, 2026 18:42
@Dandandan
Copy link
Copy Markdown
Contributor

Very nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants