elasticsearch/docs/reference/esql/source-commands/row.asciidoc
Nik Everett 1f383f3cd2 Docs: compress results into query (ESQL-1259)
This compresses the results and the query on the page to take up less
space and make them more obviously connected.
2023-06-12 09:37:45 -05:00

28 lines
612 B
Text

[[esql-row]]
=== `ROW`
The `ROW` source command produces a row with one or more columns with values
that you specify. This can be useful for testing.
[source.merge.styled,esql]
----
include::{esql-specs}/row.csv-spec[tag=example]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/row.csv-spec[tag=example-result]
|===
Use square brackets to create multi-value columns:
[source,esql]
----
include::{esql-specs}/row.csv-spec[tag=multivalue]
----
`ROW` supports the use of <<esql-functions,functions>>:
[source,esql]
----
include::{esql-specs}/row.csv-spec[tag=function]
----