Skip to content

[RFC] Add nomv command in PPL #5082

Closed

Description

@srikanthpadakanti

Proposal — Command syntax, options, and precise semantics

Command
nomv <field>

Arguments

field (required)

The name of a multivalue field whose values will be converted into a single value.

Constraints

  1. Must be a direct field reference.
  2. Must be a multivalue (array) field.
  3. If the field does not exist in the current schema, the command fails.

Precise semantics

nomv operates on the current result set produced by the pipeline. The command is row-local and does not perform grouping or aggregation

Per-row transformation

For each input row:
Read the value of . If the value is a multivalue (array), convert it into a single scalar string. Replace with the converted scalar value. Preserve all other fields unchanged.

Value rendering

Array elements are joined using a newline delimiter ("\n"). The delimiter is fixed and not configurable.

Ordering

  1. Value order in the resulting string follows the existing order of elements in the array at the point where nomv executes.
  2. If deterministic ordering is required, users must ensure ordering before nomv by controlling how the multivalue field is constructed.

Null and missing handling

Missing field (schema-level)

The command fails with an error if does not exist in the current schema.

Null field value (row-level)

If exists but its value is null for a given row, the output value remains null.

Empty array

If is an empty array, the output value is an empty string ("").

Null elements inside array

Null elements are ignored and do not produce delimiters in the output.

Type transformation

Input type: ARRAY
Output type: STRING

Error handling

The command fails if:

  1. The target field does not exist in the current schema.
  2. The target is not a direct field reference.
  3. The target field is not a multivalue (array) type.

Examples

1. Basic

Input:

| user | tags |
| joe | ["a","b"] |
| sam | ["x"] |

Query:
... | nomv tags

| user | tags |
| joe | a\nb |
| sam | x |

2. Multiple rows (row-local behavior)

Input:
| user | tags |
| joe | ["a","b"] |
| joe | ["c","d"] |

Query:
... | nomv tags

Output:

| user | tags |
| joe | a\nb |
| joe | c\nd |

3. Non-consecutive rows (no grouping)

Input:

| user | tags |
| joe | ["a"] |
| sam | ["x"] |
| joe | ["b"] |

Query:
... | nomv tags

Output:
| user | tags |
| joe | a |
| sam | x |
| joe | b |

4. Empty array

Input:

| user | tags |
| joe | [] |

Query:
... | nomv tags

Output:
| user | tags |
| joe | |

5. Null elements inside array

Input:

| user | tags |
| joe | ["a", null, "b"] |

Query:
... | nomv tags

Output:
| user | tags |
| joe | a\nb |

6. Null field value

Input:

| user | tags |
| joe | null |

Query:

... | nomv tags

Output:
| user | tags |
| joe | null |

7. Missing target field

Input:

| user | action |
| joe | login |

Query:
... | nomv tags

Result:
Error: field [tags] not found in schema

8. Scalar field (invalid target)

Input:

| user | status |
| joe | ok |

Query:
... | nomv status

Result:
Error: field [status] is not a multivalue field

9: Array with all nulls

Input:
| user | tags |
| joe | [null, null] |

Query: ... | nomv tags

Output:
| user | tags |
| joe | "" |

10: Array with empty strings

Input:
| user | tags |
| joe | ["a", "", "b"] |

Query: ... | nomv tags

Output:
| user | tags |
| joe | "a\n\nb" |


Approach

Implement nomv as a streaming projection command. No grouping, buffering, or state is required. The command rewrites the logical plan by replacing with a scalar expression derived from the array value.

Relationship to existing commands

  1. nomv is not an aggregation command.
  2. nomv does not modify row cardinality.
  3. nomv is a per-row transformation and can be modeled as a projection.

Activity

  1. changed the title [-][FEATURE] Add nomv command in PPL[/-] [+][RFC][FEATURE] Add nomv command in PPL[/+] on Jan 28, 2026
  2. changed the title [-][RFC][FEATURE] Add nomv command in PPL[/-] [+][RFC] Add nomv command in PPL[/+] on Jan 28, 2026
  3. added
    PPL
    RFC
    and removed on Feb 3, 2026
  4. added this to PPL 2026 Roadmap and removed this from PPL Trackeron Feb 3, 2026
  5. added this to PPL Tracker and removed this from PPL 2026 Roadmapon Feb 3, 2026
  6. Swiddis commented on Feb 3, 2026

    @Swiddis
    Collaborator

    As written, it looks like this is a more restrictive alias for mvjoin. You could probably pretty straightforwardly implement it as such, see e.g. the initial SPath impl which aliased out to an eval on json_extract. Is this command meant to solve any particular problem that mvjoin doesn't?

    I'd like to see a parameter in this command to choose the delimiter. Or maybe support nomming multiple fields at once, to give the command an identity that just eval/mvjoin can't as-easily handle.

  7. srikanthpadakanti commented on Feb 4, 2026

    @srikanthpadakanti
    ContributorAuthor

    As written, it looks like this is a more restrictive alias for mvjoin. You could probably pretty straightforwardly implement it as such, see e.g. the initial SPath impl which aliased out to an eval on json_extract. Is this command meant to solve any particular problem that mvjoin doesn't?

    I'd like to see a parameter in this command to choose the delimiter. Or maybe support nomming multiple fields at once, to give the command an identity that just eval/mvjoin can't as-easily handle.

    Thanks. Agreed that as written nomv is essentially a convenience wrapper over eval + mvjoin. The intent is Splunk-parity / migration ergonomics (users coming from Splunk expect nomv as a pipeline command rather than an eval expression). Other than that, I don't see nomv is solving anything in particular that mvjoin doesn't.

  8. srikanthpadakanti commented on Feb 4, 2026

    @srikanthpadakanti
    ContributorAuthor

    Do you want me to close this RFC as this is a wrapper over eval and mvjoin.
    Or you want me to implement anyway - just maintaining the parity check. @Swiddis

  9. Swiddis commented on Feb 5, 2026

    @Swiddis
    Collaborator

    I'm not blocking it, SPath did the same thing. Just was curious what the vision was.

  10. moved this from Todo to In progress in PPL 2026 Roadmapon Feb 10, 2026
  11. moved this from Not Started to Done in PPL Trackeron Feb 16, 2026
  12. moved this from In progress to Done in PPL 2026 Roadmapon Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPLRFCenhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions