Repository navigation
[Feature] Implementation of regex Command In PPL - #4083
Merged
Swiddis merged 44 commits intoAug 30, 2025
Merged
Conversation
RyanL1997
force-pushed
the
regex-cmd-java-version
branch
from
August 20, 2025 08:38
0ae9a4d to
cb2fbc7
Compare
regex Command In PPLregex Command In PPL
RyanL1997
marked this pull request as ready for review
August 20, 2025 16:53
RyanL1997
requested review from
GumpacG,
LantaoJin,
MaxKsyunz,
Swiddis,
YANG-DB,
Yury-Fridlyand,
acarbonetto,
anirudha,
dai-chen,
derek-ho,
forestmvey,
joshuali925,
kavithacm,
mengweieric,
noCharger,
penghuo,
ps48,
qianheng-aws,
seankao-az and
ykmr1224
as code owners
August 20, 2025 16:53
RyanL1997
force-pushed
the
regex-cmd-java-version
branch
from
August 29, 2025 02:19
a9e65c7 to
5723a9f
Compare
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
ykmr1224
reviewed
Aug 29, 2025
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
dai-chen
previously approved these changes
Aug 29, 2025
dai-chen
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the changes!
ykmr1224
reviewed
Aug 30, 2025
Signed-off-by: Jialiang Liang <[email protected]>
ykmr1224
approved these changes
Aug 30, 2025
Swiddis
approved these changes
Aug 30, 2025
Contributor
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/sql/backport-2.19-dev 2.19-dev
# Navigate to the new working tree
pushd ../.worktrees/sql/backport-2.19-dev
# Create a new branch
git switch --create backport/backport-4083-to-2.19-dev
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 9b88f23f343c774a1b8c57f80b6e2943cb602f4f
# Push it to GitHub
git push --set-upstream origin backport/backport-4083-to-2.19-dev
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/sql/backport-2.19-devThen, create a pull request where the |
Collaborator
Author
|
Will manual backport it. |
ykmr1224
pushed a commit
to ykmr1224/sql
that referenced
this pull request
Sep 2, 2025
…t#4083) * implement regex cmd with calcite support by suing java library Signed-off-by: Jialiang Liang <[email protected]> * code hygiene fix Signed-off-by: Jialiang Liang <[email protected]> * comment clean up Signed-off-by: Jialiang Liang <[email protected]> * implement explain it Signed-off-by: Jialiang Liang <[email protected]> * disable regex when calcite is disable and add a test in analyzer Signed-off-by: Jialiang Liang <[email protected]> * fix spotless check Signed-off-by: Jialiang Liang <[email protected]> * [refactor] refactor some regex fn into a util class for re-usage Signed-off-by: Jialiang Liang <[email protected]> * [refactor] revert filter query builder cuz we do not need it anymore Signed-off-by: Jialiang Liang <[email protected]> * add rst docs for regex cmd Signed-off-by: Jialiang Liang <[email protected]> * add IT for regex cmd Signed-off-by: Jialiang Liang <[email protected]> * add IT for calcite no pushdown Signed-off-by: Jialiang Liang <[email protected]> * fix regex exp behavior for non string val Signed-off-by: Jialiang Liang <[email protected]> * style - remove some verbose comments Signed-off-by: Jialiang Liang <[email protected]> * remove string convertion Signed-off-by: Jialiang Liang <[email protected]> * use existing operator of REGEXP_CONTAINS Signed-off-by: Jialiang Liang <[email protected]> * fix integ test of rgex with pushdown after operator commit Signed-off-by: Jialiang Liang <[email protected]> * remove some verbose comments and fix some style Signed-off-by: Jialiang Liang <[email protected]> * fix explain it in no pushdown Signed-off-by: Jialiang Liang <[email protected]> * comment - remove unused fn for string converting Signed-off-by: Jialiang Liang <[email protected]> * remove duplicated regex match operator alias Signed-off-by: Jialiang Liang <[email protected]> * unit test - initail commit Signed-off-by: Jialiang Liang <[email protected]> * anonymizer with test Signed-off-by: Jialiang Liang <[email protected]> * fix spotlessApply Signed-off-by: Jialiang Liang <[email protected]> * add cross cluster IT Signed-off-by: Jialiang Liang <[email protected]> * fix spotless apply Signed-off-by: Jialiang Liang <[email protected]> * tomo - fix operator constant Signed-off-by: Jialiang Liang <[email protected]> * tomo - fix regex java doc Signed-off-by: Jialiang Liang <[email protected]> * tomo - field and pattern handling fix Signed-off-by: Jialiang Liang <[email protected]> * tomo - fix LRUCache Signed-off-by: Jialiang Liang <[email protected]> * tomo - remove unnecessary delegation layer Signed-off-by: Jialiang Liang <[email protected]> * rst doc fix Signed-off-by: Jialiang Liang <[email protected]> * tomo - fix comments Signed-off-by: Jialiang Liang <[email protected]> * DEFAULT FIELD related change Signed-off-by: Jialiang Liang <[email protected]> * DEFAULT FIELD - fix anonymizer tests Signed-off-by: Jialiang Liang <[email protected]> * tomo - add unit test for regex util class Signed-off-by: Jialiang Liang <[email protected]> * chen - remove code for legacy engine Signed-off-by: Jialiang Liang <[email protected]> * chen - remove stalled logic for spcified field Signed-off-by: Jialiang Liang <[email protected]> * chen - merge into 1 grammar in parser Signed-off-by: Jialiang Liang <[email protected]> * properly handle non-string field Signed-off-by: Jialiang Liang <[email protected]> * remove verbose comments Signed-off-by: Jialiang Liang <[email protected]> * remove verbose comments Signed-off-by: Jialiang Liang <[email protected]> * address commetns Signed-off-by: Jialiang Liang <[email protected]> * fix doc test for regex Signed-off-by: Jialiang Liang <[email protected]> * fix doc Signed-off-by: Jialiang Liang <[email protected]> --------- Signed-off-by: Jialiang Liang <[email protected]>
Contributor
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/sql/backport-2.19-dev 2.19-dev
# Navigate to the new working tree
pushd ../.worktrees/sql/backport-2.19-dev
# Create a new branch
git switch --create backport/backport-4083-to-2.19-dev
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 9b88f23f343c774a1b8c57f80b6e2943cb602f4f
# Push it to GitHub
git push --set-upstream origin backport/backport-4083-to-2.19-dev
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/sql/backport-2.19-devThen, create a pull request where the |
Collaborator
|
Can you do manual backport or see what is conflicting? |
1 of 8 tasks
RyanL1997
added a commit
to RyanL1997/sql
that referenced
this pull request
Sep 3, 2025
…t#4083) * implement regex cmd with calcite support by suing java library Signed-off-by: Jialiang Liang <[email protected]> * code hygiene fix Signed-off-by: Jialiang Liang <[email protected]> * comment clean up Signed-off-by: Jialiang Liang <[email protected]> * implement explain it Signed-off-by: Jialiang Liang <[email protected]> * disable regex when calcite is disable and add a test in analyzer Signed-off-by: Jialiang Liang <[email protected]> * fix spotless check Signed-off-by: Jialiang Liang <[email protected]> * [refactor] refactor some regex fn into a util class for re-usage Signed-off-by: Jialiang Liang <[email protected]> * [refactor] revert filter query builder cuz we do not need it anymore Signed-off-by: Jialiang Liang <[email protected]> * add rst docs for regex cmd Signed-off-by: Jialiang Liang <[email protected]> * add IT for regex cmd Signed-off-by: Jialiang Liang <[email protected]> * add IT for calcite no pushdown Signed-off-by: Jialiang Liang <[email protected]> * fix regex exp behavior for non string val Signed-off-by: Jialiang Liang <[email protected]> * style - remove some verbose comments Signed-off-by: Jialiang Liang <[email protected]> * remove string convertion Signed-off-by: Jialiang Liang <[email protected]> * use existing operator of REGEXP_CONTAINS Signed-off-by: Jialiang Liang <[email protected]> * fix integ test of rgex with pushdown after operator commit Signed-off-by: Jialiang Liang <[email protected]> * remove some verbose comments and fix some style Signed-off-by: Jialiang Liang <[email protected]> * fix explain it in no pushdown Signed-off-by: Jialiang Liang <[email protected]> * comment - remove unused fn for string converting Signed-off-by: Jialiang Liang <[email protected]> * remove duplicated regex match operator alias Signed-off-by: Jialiang Liang <[email protected]> * unit test - initail commit Signed-off-by: Jialiang Liang <[email protected]> * anonymizer with test Signed-off-by: Jialiang Liang <[email protected]> * fix spotlessApply Signed-off-by: Jialiang Liang <[email protected]> * add cross cluster IT Signed-off-by: Jialiang Liang <[email protected]> * fix spotless apply Signed-off-by: Jialiang Liang <[email protected]> * tomo - fix operator constant Signed-off-by: Jialiang Liang <[email protected]> * tomo - fix regex java doc Signed-off-by: Jialiang Liang <[email protected]> * tomo - field and pattern handling fix Signed-off-by: Jialiang Liang <[email protected]> * tomo - fix LRUCache Signed-off-by: Jialiang Liang <[email protected]> * tomo - remove unnecessary delegation layer Signed-off-by: Jialiang Liang <[email protected]> * rst doc fix Signed-off-by: Jialiang Liang <[email protected]> * tomo - fix comments Signed-off-by: Jialiang Liang <[email protected]> * DEFAULT FIELD related change Signed-off-by: Jialiang Liang <[email protected]> * DEFAULT FIELD - fix anonymizer tests Signed-off-by: Jialiang Liang <[email protected]> * tomo - add unit test for regex util class Signed-off-by: Jialiang Liang <[email protected]> * chen - remove code for legacy engine Signed-off-by: Jialiang Liang <[email protected]> * chen - remove stalled logic for spcified field Signed-off-by: Jialiang Liang <[email protected]> * chen - merge into 1 grammar in parser Signed-off-by: Jialiang Liang <[email protected]> * properly handle non-string field Signed-off-by: Jialiang Liang <[email protected]> * remove verbose comments Signed-off-by: Jialiang Liang <[email protected]> * remove verbose comments Signed-off-by: Jialiang Liang <[email protected]> * address commetns Signed-off-by: Jialiang Liang <[email protected]> * fix doc test for regex Signed-off-by: Jialiang Liang <[email protected]> * fix doc Signed-off-by: Jialiang Liang <[email protected]> --------- Signed-off-by: Jialiang Liang <[email protected]>
7 of 8 tasks
ykmr1224
added a commit
that referenced
this pull request
Sep 3, 2025
* [Feature] Implementation of `regex` Command In PPL (#4083) * implement regex cmd with calcite support by suing java library Signed-off-by: Jialiang Liang <[email protected]> * code hygiene fix Signed-off-by: Jialiang Liang <[email protected]> * comment clean up Signed-off-by: Jialiang Liang <[email protected]> * implement explain it Signed-off-by: Jialiang Liang <[email protected]> * disable regex when calcite is disable and add a test in analyzer Signed-off-by: Jialiang Liang <[email protected]> * fix spotless check Signed-off-by: Jialiang Liang <[email protected]> * [refactor] refactor some regex fn into a util class for re-usage Signed-off-by: Jialiang Liang <[email protected]> * [refactor] revert filter query builder cuz we do not need it anymore Signed-off-by: Jialiang Liang <[email protected]> * add rst docs for regex cmd Signed-off-by: Jialiang Liang <[email protected]> * add IT for regex cmd Signed-off-by: Jialiang Liang <[email protected]> * add IT for calcite no pushdown Signed-off-by: Jialiang Liang <[email protected]> * fix regex exp behavior for non string val Signed-off-by: Jialiang Liang <[email protected]> * style - remove some verbose comments Signed-off-by: Jialiang Liang <[email protected]> * remove string convertion Signed-off-by: Jialiang Liang <[email protected]> * use existing operator of REGEXP_CONTAINS Signed-off-by: Jialiang Liang <[email protected]> * fix integ test of rgex with pushdown after operator commit Signed-off-by: Jialiang Liang <[email protected]> * remove some verbose comments and fix some style Signed-off-by: Jialiang Liang <[email protected]> * fix explain it in no pushdown Signed-off-by: Jialiang Liang <[email protected]> * comment - remove unused fn for string converting Signed-off-by: Jialiang Liang <[email protected]> * remove duplicated regex match operator alias Signed-off-by: Jialiang Liang <[email protected]> * unit test - initail commit Signed-off-by: Jialiang Liang <[email protected]> * anonymizer with test Signed-off-by: Jialiang Liang <[email protected]> * fix spotlessApply Signed-off-by: Jialiang Liang <[email protected]> * add cross cluster IT Signed-off-by: Jialiang Liang <[email protected]> * fix spotless apply Signed-off-by: Jialiang Liang <[email protected]> * tomo - fix operator constant Signed-off-by: Jialiang Liang <[email protected]> * tomo - fix regex java doc Signed-off-by: Jialiang Liang <[email protected]> * tomo - field and pattern handling fix Signed-off-by: Jialiang Liang <[email protected]> * tomo - fix LRUCache Signed-off-by: Jialiang Liang <[email protected]> * tomo - remove unnecessary delegation layer Signed-off-by: Jialiang Liang <[email protected]> * rst doc fix Signed-off-by: Jialiang Liang <[email protected]> * tomo - fix comments Signed-off-by: Jialiang Liang <[email protected]> * DEFAULT FIELD related change Signed-off-by: Jialiang Liang <[email protected]> * DEFAULT FIELD - fix anonymizer tests Signed-off-by: Jialiang Liang <[email protected]> * tomo - add unit test for regex util class Signed-off-by: Jialiang Liang <[email protected]> * chen - remove code for legacy engine Signed-off-by: Jialiang Liang <[email protected]> * chen - remove stalled logic for spcified field Signed-off-by: Jialiang Liang <[email protected]> * chen - merge into 1 grammar in parser Signed-off-by: Jialiang Liang <[email protected]> * properly handle non-string field Signed-off-by: Jialiang Liang <[email protected]> * remove verbose comments Signed-off-by: Jialiang Liang <[email protected]> * remove verbose comments Signed-off-by: Jialiang Liang <[email protected]> * address commetns Signed-off-by: Jialiang Liang <[email protected]> * fix doc test for regex Signed-off-by: Jialiang Liang <[email protected]> * fix doc Signed-off-by: Jialiang Liang <[email protected]> --------- Signed-off-by: Jialiang Liang <[email protected]> * Fix merge issue (#4214) Signed-off-by: Tomoyuki Morita <[email protected]> * Fix AnalyzerTest (#4215) Signed-off-by: Tomoyuki Morita <[email protected]> --------- Signed-off-by: Jialiang Liang <[email protected]> Signed-off-by: Tomoyuki Morita <[email protected]> Co-authored-by: Tomoyuki MORITA <[email protected]>
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.
Description
Implementation of
regexCommand In PPLDetails:
regex!=: Negated matching - returns records that do NOT match the pattern=: Positive matching - returns records that match the patternFor the handling of default field (
_source/_raw):Related Issues
regexCommand to PPL (Calcite Engine) #4082Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.