row.asciidoc 623 B

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