Skip to content

Align Parse match logic with Rex command#4819

Closed
songkant-aws wants to merge 4 commits into
opensearch-project:mainfrom
songkant-aws:align-parse-match-logic
Closed

Align Parse match logic with Rex command#4819
songkant-aws wants to merge 4 commits into
opensearch-project:mainfrom
songkant-aws:align-parse-match-logic

Conversation

@songkant-aws

@songkant-aws songkant-aws commented Nov 18, 2025

Copy link
Copy Markdown
Collaborator

Description

Align the regex matching logic of Parse command with Rex command.

Related Issues

Resolves #4427

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.

Signed-off-by: Songkan Tang <songkant@amazon.com>
Signed-off-by: Songkan Tang <songkant@amazon.com>
Signed-off-by: Songkan Tang <songkant@amazon.com>
@songkant-aws

Copy link
Copy Markdown
Collaborator Author

@RyanL1997 @penghuo Let me know if this is the expected change.

@yuancu yuancu added the bugFix label Nov 24, 2025
@yuancu yuancu added the enhancement New feature or request label Nov 24, 2025

@yuancu yuancu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we also need to update parse.rst?

E.g.

The regular expression pattern is used to match the whole text field of each document with Java regex engine.

@songkant-aws

songkant-aws commented Nov 24, 2025

Copy link
Copy Markdown
Collaborator Author

@yuancu Thanks, that makes sense! I want to get confirmation first before modifying the logic and doc. The existing behavior aligns with the current description in the parse.rst.

So maybe it's not a bug. Instead, the old logic is expected behavior. Any idea? @penghuo @RyanL1997

@songkant-aws songkant-aws deleted the align-parse-match-logic branch December 3, 2025 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugFix enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] PPL Parse command does not work as expect

2 participants