Skip to content

Conversation

@RyanL1997
Copy link
Collaborator

@RyanL1997 RyanL1997 commented Sep 3, 2025

Description

Manual backport

Related Issues

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • New functionality has javadoc added.
  • New functionality has a user manual doc added.
  • New PPL command checklist all confirmed.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff or -s.
  • Public documentation issue/PR created.

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.

…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]>
@RyanL1997 RyanL1997 changed the title [Feature] Implementation of regex Command In PPL (#4083) [Backport 2.19-dev] Implementation of regex Command In PPL Sep 3, 2025
@ykmr1224
Copy link
Collaborator

ykmr1224 commented Sep 3, 2025

Can you apply these changes? That should fix the CI failure.
#4214
#4215

@ykmr1224 ykmr1224 merged commit 633678d into opensearch-project:2.19-dev Sep 3, 2025
24 checks passed
@ykmr1224 ykmr1224 mentioned this pull request Sep 3, 2025
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