Repository navigation
Commit f338f19
authored
test: cover regexp_like multiline flag (apache#22284)
## Which issue does this PR close?
- Relates to apache#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. Current `main` already 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_like` tests for the multiline `m` flag 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 to `m`.
## Are these changes tested?
Yes:
- `cargo fmt --all --check`
- `git diff --check`
- `cargo test -p datafusion-functions --lib regexp_like`
- `cargo test -p datafusion-sqllogictest --test sqllogictests --
regexp_like`
## Are there any user-facing changes?
No. This is regression coverage for existing behavior.
---------
Co-authored-by: Nanook <[email protected]>1 parent 6644732 commit f338f19
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
171 | 181 | | |
172 | 182 | | |
173 | 183 | | |
| |||
0 commit comments