mvappend()

Table of Contents
This command is experimental

Definition

mvappend() takes one or more values as arguments and returns a single multivalue result containing all of the values. The values can be given as strings, multivalue columns, or single value columns.

Examples

The following example creates a new multivalue column 'employees' by including also the value in 'name' column.

| makeresults
| eval name="Alice"
| eval employees=mvappend("Bob", name)
Screenshot of the previous example’s result

Currently, column references to multivalue columns are not supported in mvappend(). See the issue on GitHub.

You can also use mvappend() to create a multivalue column from scratch. The following example creates a list of different fruits.

| makeresults
| eval fruits=mvappend("banana", "apple", "pear")
Screenshot of the previous example’s result

Further Reading