elasticsearch/docs/reference/esql/functions/to_version.asciidoc

35 lines
590 B
Plaintext

[discrete]
[[esql-to_version]]
=== `TO_VERSION`
*Alias*
`TO_VER`
*Syntax*
[.text-center]
image::esql/functions/signature/to_version.svg[Embedded,opts=inline]
*Parameters*
`v`::
Input value. The input can be a single- or multi-valued column or an expression.
*Description*
Converts an input string to a version value.
include::types/to_version.asciidoc[]
*Example*
[source.merge.styled,esql]
----
include::{esql-specs}/version.csv-spec[tag=to_version]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/version.csv-spec[tag=to_version-result]
|===