Skip to content

Conversation

@ps48
Copy link
Member

@ps48 ps48 commented Sep 15, 2025

Description

This PR adds support for the mvjoin function in PPL with Apache Calcite integration. The mvjoin function concatenates the elements of a multi-value field into a single string using a specified delimiter. This is useful for converting multi-value fields into a readable string format.

Syntax: mvjoin(multivalue_field, delimiter)

Example:

source=logs | eval joined_values = mvjoin(array('apple', 'banana', 'cherry'), ', ')
// Result: "apple, banana, cherry"

Original PR to main: #4217

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.

ps48 and others added 2 commits September 15, 2025 13:36
* mvjoin support in PPL Caclite

Signed-off-by: ps48 <[email protected]>

* fix texts

Signed-off-by: ps48 <[email protected]>

* update docs

Signed-off-by: ps48 <[email protected]>

* update doc examples

Signed-off-by: ps48 <[email protected]>

* rebase main, update test

Signed-off-by: ps48 <[email protected]>

* update test with real array fields

Signed-off-by: ps48 <[email protected]>

* use verifyQueryThrowsException in CalcitePPLFunctionTypeTest

Signed-off-by: ps48 <[email protected]>

* spotless check fix

Signed-off-by: ps48 <[email protected]>

* remove string,string registration for mvjoin

Signed-off-by: ps48 <[email protected]>

* remove string,string test

Signed-off-by: ps48 <[email protected]>

---------

Signed-off-by: ps48 <[email protected]>
(cherry picked from commit cb51d8e)
Signed-off-by: ps48 <[email protected]>
@ps48 ps48 merged commit 5d4525a into opensearch-project:2.19-dev Sep 15, 2025
42 checks passed
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