ends_with.asciidoc 670 B

123456789101112131415161718192021222324252627282930313233343536
  1. [discrete]
  2. [[esql-ends_with]]
  3. === `ENDS_WITH`
  4. *Syntax*
  5. [.text-center]
  6. image::esql/functions/signature/ends_with.svg[Embedded,opts=inline]
  7. *Parameters*
  8. `str`::
  9. String expression. If `null`, the function returns `null`.
  10. `suffix`::
  11. String expression. If `null`, the function returns `null`.
  12. *Description*
  13. Returns a boolean that indicates whether a keyword string ends with another
  14. string.
  15. *Supported types*
  16. include::types/ends_with.asciidoc[]
  17. *Example*
  18. [source.merge.styled,esql]
  19. ----
  20. include::{esql-specs}/string.csv-spec[tag=endsWith]
  21. ----
  22. [%header.monospaced.styled,format=dsv,separator=|]
  23. |===
  24. include::{esql-specs}/string.csv-spec[tag=endsWith-result]
  25. |===