Skip to content

test: cover regexp_like multiline flag#22284

Open
nanookclaw wants to merge 1 commit into
apache:mainfrom
nanookclaw:fix/regexp-like-multiline-flag
Open

test: cover regexp_like multiline flag#22284
nanookclaw wants to merge 1 commit into
apache:mainfrom
nanookclaw:fix/regexp-like-multiline-flag

Conversation

@nanookclaw
Copy link
Copy Markdown

Which issue does this PR close?

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.

@github-actions github-actions Bot added sqllogictest SQL Logic Tests (.slt) functions Changes to functions implementation labels May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PostgreSQL compatibility: regexp_like should honor PostgreSQL multiline flag m

1 participant