mv_expand.asciidoc 723 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. [discrete]
  2. [[esql-mv_expand]]
  3. === `MV_EXPAND`
  4. preview::[]
  5. The `MV_EXPAND` processing command expands multivalued columns into one row per
  6. value, duplicating other columns.
  7. **Syntax**
  8. [source,esql]
  9. ----
  10. MV_EXPAND column
  11. ----
  12. *Parameters*
  13. `column`::
  14. The multivalued column to expand.
  15. [WARNING]
  16. ======
  17. The output rows produced by `MV_EXPAND` can be in any order and may not respect
  18. preceding `SORT` commands. To guarantee a certain ordering, place a `SORT` after any
  19. `MV_EXPAND` commands.
  20. ======
  21. *Example*
  22. [source.merge.styled,esql]
  23. ----
  24. include::{esql-specs}/mv_expand.csv-spec[tag=simple]
  25. ----
  26. [%header.monospaced.styled,format=dsv,separator=|]
  27. |===
  28. include::{esql-specs}/mv_expand.csv-spec[tag=simple-result]
  29. |===