mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
This copies the first line of the description of each command to just under the syntax so that it's "in order", before the `Parameters` section. That way if you are reading from top to bottom you see: ``` syntax short description parameter names and descriptions long description examples ``` I've also removed the `Description` section entirely if the description was just one sentence. So in some cases that just isn't `long description`.
47 lines
867 B
Text
47 lines
867 B
Text
[discrete]
|
|
[[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.
|
|
|
|
**Syntax**
|
|
|
|
[source,esql]
|
|
----
|
|
ROW column1 = value1[, ..., columnN = valueN]
|
|
----
|
|
|
|
*Parameters*
|
|
|
|
`columnX`::
|
|
The column name.
|
|
|
|
`valueX`::
|
|
The value for the column. Can be a literal, an expression, or a
|
|
<<esql-functions,function>>.
|
|
|
|
*Examples*
|
|
|
|
[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]
|
|
----
|