row.asciidoc 612 B

12345678910111213141516171819202122232425262728
  1. [[esql-row]]
  2. === `ROW`
  3. The `ROW` source command produces a row with one or more columns with values
  4. that you specify. This can be useful for testing.
  5. [source.merge.styled,esql]
  6. ----
  7. include::{esql-specs}/row.csv-spec[tag=example]
  8. ----
  9. [%header.monospaced.styled,format=dsv,separator=|]
  10. |===
  11. include::{esql-specs}/row.csv-spec[tag=example-result]
  12. |===
  13. Use square brackets to create multi-value columns:
  14. [source,esql]
  15. ----
  16. include::{esql-specs}/row.csv-spec[tag=multivalue]
  17. ----
  18. `ROW` supports the use of <<esql-functions,functions>>:
  19. [source,esql]
  20. ----
  21. include::{esql-specs}/row.csv-spec[tag=function]
  22. ----