Skip to content

feat(datafusion): support RLIKE and REGEXP operators - #1289

Merged
JingsongLi merged 3 commits into
apache:mainfrom
JingsongLi:codex/fusion-regex-operators
Nov 2, 2026
Merged

JingsongLi merged 3 commits into
apache:mainfrom
JingsongLi:codex/fusion-regex-operators

Conversation

@JingsongLi

@JingsongLi JingsongLi commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Closes #1283.

sqlparser accepts regex operator ASTs, but DataFusion 54 does not plan RLIKE/REGEXP. The pinned parser also consumes a bare NULL regex pattern before parsing it.

Brief change log

  • Lower parsed RLIKE/REGEXP and NOT forms to native DataFusion regex operators, retaining expression grouping.
  • Work around bare-NULL parsing without modifying strings, comments, quoted names or same-named column identifiers.
  • Cover existing REST function/view parsing and native views while retaining portable persistent definitions.

Tests

API and Format

Adds SQLContext SQL capabilities. No storage-format or Rust public API changes.

Documentation

Documented syntax, type/null/error behavior and supported limits in docs/src/sql.md.

@leaves12138 leaves12138 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JingsongLi
JingsongLi merged commit 0143768 into apache:main Nov 2, 2026
14 of 15 checks passed
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.

[datafusion] Support RLIKE and REGEXP operators

2 participants