to_string.asciidoc 723 B

1234567891011121314151617181920212223242526272829303132
  1. [[esql-to_string]]
  2. === `TO_STRING`
  3. [.text-center]
  4. image::esql/functions/signature/to_string.svg[Embedded,opts=inline]
  5. Converts a field into a string. For example:
  6. [source.merge.styled,esql]
  7. ----
  8. include::{esql-specs}/string.csv-spec[tag=to_string]
  9. ----
  10. [%header.monospaced.styled,format=dsv,separator=|]
  11. |===
  12. include::{esql-specs}/string.csv-spec[tag=to_string-result]
  13. |===
  14. It also works fine on multivalued fields:
  15. [source.merge.styled,esql]
  16. ----
  17. include::{esql-specs}/string.csv-spec[tag=to_string_multivalue]
  18. ----
  19. [%header.monospaced.styled,format=dsv,separator=|]
  20. |===
  21. include::{esql-specs}/string.csv-spec[tag=to_string_multivalue-result]
  22. |===
  23. Alias: TO_STR
  24. Supported types:
  25. include::types/to_string.asciidoc[]