mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
This compresses the results and the query on the page to take up less space and make them more obviously connected.
28 lines
612 B
Text
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]
|
|
----
|