Skip to content

PHOENIX-7276 Add REGEXP_LIKE built-in function#2398

Merged
virajjasani merged 4 commits into
apache:masterfrom
xavifeds8:PHOENIX-7276
Apr 23, 2026
Merged

PHOENIX-7276 Add REGEXP_LIKE built-in function#2398
virajjasani merged 4 commits into
apache:masterfrom
xavifeds8:PHOENIX-7276

Conversation

@xavifeds8
Copy link
Copy Markdown
Contributor

Adds REGEXP_LIKE(source_string, pattern [, match_parameter]) function that tests whether a string matches a regular expression pattern and returns a boolean result. Uses full-match semantics consistent with Hive/Spark.

@xavifeds8
Copy link
Copy Markdown
Contributor Author

@xavifeds8 xavifeds8 force-pushed the PHOENIX-7276 branch 3 times, most recently from 22cc7dd to b20485e Compare April 2, 2026 07:26
@xavifeds8
Copy link
Copy Markdown
Contributor Author

@virajjasani can you please review this PR ?

@virajjasani virajjasani self-requested a review April 13, 2026 22:15
@virajjasani
Copy link
Copy Markdown
Contributor

Nice, can we also document what is the main difference b/ this function and LIKE expression that phoenix supports?

@virajjasani
Copy link
Copy Markdown
Contributor

Triggered a new build since the last build timed out https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-2398/

@virajjasani
Copy link
Copy Markdown
Contributor

@sanjeet006py if you would also like to take a look?

@virajjasani
Copy link
Copy Markdown
Contributor

@xavifeds8 could you run mvn spotless:apply with JDK 8? The jenkins build complains about this

@xavifeds8
Copy link
Copy Markdown
Contributor Author

@xavifeds8 could you run mvn spotless:apply with JDK 8? The jenkins build complains about this

Hey @virajjasani thanks for pointing it out. I have fixed the spotless issue now it should be good. 👍

Copy link
Copy Markdown
Contributor

@sanjeet006py sanjeet006py left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM overall just one comment.

Adds REGEXP_LIKE(source_string, pattern [, match_parameter]) function that
tests whether a string matches a regular expression pattern and returns a
boolean result. Uses full-match semantics consistent with Hive/Spark.
…sion

Added comprehensive Javadoc comparison explaining pattern syntax, complexity, flags,
performance differences and examples.
Copy link
Copy Markdown
Contributor

@sanjeet006py sanjeet006py left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks

@virajjasani virajjasani merged commit 5d14dec into apache:master Apr 23, 2026
@virajjasani
Copy link
Copy Markdown
Contributor

Thanks @xavifeds8 and @sanjeet006py!

@xavifeds8 feel free to create backport PR for 5.3 as well

@xavifeds8
Copy link
Copy Markdown
Contributor Author

Thanks @xavifeds8 and @sanjeet006py!

@xavifeds8 feel free to create backport PR for 5.3 as well

Thanks @virajjasani and @sanjeet006py! Appreciate the merge and review. Happy to contribute to Phoenix 👍 .

@virajjasani I have raised another PR as a backport for 5.3 (#2422) can you please check.

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.

3 participants