opensearch-project / opensearch-project/sql
[FEATURE] Add regex-based filtering support in PPL queries
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 176
- Forks
- 229
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 43
Description
Is your feature request related to a problem?
Currently, PPL supports the LIKE expression, which works with wildcards. However, it does not natively support filtering using regular expressions, a feature many users need for more advanced and flexible text matching.
What solution would you like?
Introduce regular expression matching capability either by enhancing the LIKE operator or introducing a new operator, similar to the functionality described in https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax-Filter.html#CWL_QuerySyntax-regex.
What alternatives have you considered?
As a workaround, users can use the parse command to match the entire line and filter out non-empty results for a newly created field. However, this approach is complex and requires additional validation to ensure it behaves as expected.
Do you have any additional context?
N/A
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing PPL LIKE expression and parse command behavior, then compare the requested matching semantics with the linked CloudWatch regex documentation. Done means an agreed operator design, defined regular-expression behavior, and validation that the new filtering capability behaves as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100