PHOENIX-7276 Add REGEXP_LIKE built-in function#2398
Open
xavifeds8 wants to merge 3 commits intoapache:masterfrom
Open
PHOENIX-7276 Add REGEXP_LIKE built-in function#2398xavifeds8 wants to merge 3 commits intoapache:masterfrom
xavifeds8 wants to merge 3 commits intoapache:masterfrom
Conversation
Author
|
Test cases : https://gist.github.com/xavifeds8/277363033cb44e18eeddf44894c038ca |
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.
22cc7dd to
b20485e
Compare
…rtline 1) EOF reached before encapsulated token finished"
Author
|
@virajjasani can you please review this PR ? |
Contributor
|
Nice, can we also document what is the main difference b/ this function and |
virajjasani
reviewed
Apr 13, 2026
Comment on lines
+38
to
+52
| * Function similar to Oracle's REGEXP_LIKE, which tests whether a string matches a regular | ||
| * expression pattern. Usage: {@code REGEXP_LIKE(<source_char>, <pattern> [, <match_parameter>]) } | ||
| * <p> | ||
| * source_char is the string to search. pattern is a Java compatible regular expression string. | ||
| * match_parameter is an optional string of flags that modify matching behavior: | ||
| * <ul> | ||
| * <li>'i' - case-insensitive matching</li> | ||
| * <li>'c' - case-sensitive matching (default)</li> | ||
| * <li>'m' - multiline mode (^ and $ match line boundaries). Note: with full-match semantics, 'm' | ||
| * has limited use on its own; it is most useful combined with 's'. May become independently useful | ||
| * if partial-match semantics are adopted in the future.</li> | ||
| * <li>'s' - dotall mode (. matches any character including newline)</li> | ||
| * </ul> | ||
| * The function returns a {@link org.apache.phoenix.schema.types.PBoolean}. | ||
| * @since 5.3 |
Contributor
There was a problem hiding this comment.
Please feel free to include the difference as part of this Javadoc
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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.