mv_first.asciidoc 679 B

1234567891011
  1. // This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.
  2. *Description*
  3. Converts a multivalued expression into a single valued column containing the first value. This is most useful when reading from a function that emits multivalued columns in a known order like <<esql-split>>.
  4. The order that <<esql-multivalued-fields, multivalued fields>> are read from
  5. underlying storage is not guaranteed. It is *frequently* ascending, but don't
  6. rely on that. If you need the minimum value use <<esql-mv_min>> instead of
  7. `MV_FIRST`. `MV_MIN` has optimizations for sorted values so there isn't a
  8. performance benefit to `MV_FIRST`.