Skip to content

Conversation

@ahkcs
Copy link
Contributor

@ahkcs ahkcs commented Nov 14, 2025

Summary

This PR implements the split eval function for PPL, enabling users to split strings into multivalue arrays based on a delimiter.

Examples

Basic split with semicolon

source=people | eval result = split('a;b;c', ';')

Result: ['a', 'b', 'c']


Split into individual characters (empty delimiter)

source=people | eval result = split('abcd', '')

Result: ['a', 'b', 'c', 'd']


Multi-character delimiter

source=people | eval result = split('name::value', '::')

Result: ['name', 'value']


Split field value

source=people | eval words = split(employer, ' ')

Splits the employer field on spaces.


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: Kai Huang <[email protected]>
Signed-off-by: Kai Huang <[email protected]>
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.

1 participant