Skip to content

Add mvexpand PPL Command: Expand Multi-value Fields into Separate Rows#4410

Closed
srikanthpadakanti wants to merge 0 commit intoopensearch-project:mainfrom
srikanthpadakanti:main
Closed

Add mvexpand PPL Command: Expand Multi-value Fields into Separate Rows#4410
srikanthpadakanti wants to merge 0 commit intoopensearch-project:mainfrom
srikanthpadakanti:main

Conversation

@srikanthpadakanti
Copy link
Contributor

Description

This pull request introduces the new mvexpand Piped Processing Language (PPL) command to OpenSearch SQL. The mvexpand command enables expansion of multi-value fields—such as arrays—into separate rows, allowing users to easily normalize and analyze nested data. This supports advanced transformations in data pipelines and complements existing PPL commands.

Key highlights:

Implements AST node, logical and physical plan wiring for mvexpand.
Adds support for multi-value expansion for any array field in tabular results.
Includes testing and documentation for the new command.

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • [ X ] New functionality includes testing.
  • [ X ] New functionality has been documented.
  • [ X ] New functionality has javadoc added.
  • [ X ] New functionality has a user manual doc added.
  • [ X ] New PPL command checklist all confirmed.
  • API changes companion pull request created.
  • [ X ] 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.

@penghuo
Copy link
Collaborator

penghuo commented Oct 3, 2025

Thanks for the PR.
Early feedback, Could u reference mvjoin support in PPL Caclite.

@srikanthpadakanti
Copy link
Contributor Author

mvjoin support in PPL Caclite

Hello @penghuo Thank you for the message. But I do not see any files here
image

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.

2 participants