Uh oh!
There was an error while loading. Please reload this page.
test: cover regexp_like multiline flag - #22284
Conversation
Jefffrey
commented
May 26, 2026
So was the original issue a false report? |
nanookclaw
commented
May 26, 2026
It looks stale on current So this PR is intentionally regression coverage only: it locks the multiline If coverage-only is not useful here, I'm fine closing it. |
Jefffrey
commented
May 26, 2026
I would like to understand the original issue more, especially since the related file hasn't seen a change in 2 months 🤔 https://github.com/apache/datafusion/blob/main/datafusion/functions/src/regex/regexplike.rs |
nanookclaw
commented
May 26, 2026
I dug into this more after your question, and I agree the original split-out issue looks questionable. What I can verify:
So my current read is: #22268 was probably a false-positive split from the umbrella issue, or at least not a live |
Jefffrey
commented
May 27, 2026
I'm fine with adding test coverage if we don't already have the multiline cases; could we just add only the SLTs however? We prefer having SLTs over the Rust test cases where possible |
nanookclaw
commented
May 27, 2026
Updated to keep this as SLT-only coverage: the Rust tests have been removed, and the PR now only adds the two Validation run locally:
|
Jefffrey
commented
Jun 1, 2026
Thanks @nanookclaw |
Uh oh!
There was an error while loading. Please reload this page.
Which issue does this PR close?
regexp_likeshould honor PostgreSQL multiline flagm#22268.Rationale for this change
The issue documents a PostgreSQL compatibility expectation for
regexp_like(E'a\nb', '^b', 'm'): with the multiline flag,^should match after a newline. Currentmainalready returns the expected result for the reported SQL, so this PR adds focused regression coverage to keep that behavior from drifting.What changes are included in this PR?
This adds
regexp_liketests for the multilinemflag in the SQL logic test suite and in the Rust unit tests for the scalar, array/scalar, and array/array execution paths. The adjacent no-flags SQL case remains false, documenting that the new behavior is specifically tied tom.Are these changes tested?
Yes:
cargo fmt --all --checkgit diff --checkcargo test -p datafusion-functions --lib regexp_likecargo test -p datafusion-sqllogictest --test sqllogictests -- regexp_likeAre there any user-facing changes?
No. This is regression coverage for existing behavior.