elasticsearch/docs/reference/query-languages/esql/_snippets/functions/to_upper.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
582 B
Markdown
Raw Normal View History

## `TO_UPPER` [esql-to_upper]
**Syntax**
:::{image} ../../../../../images/to_upper.svg
:alt: Embedded
:class: text-center
:::
**Parameters**
`str`
: String expression. If `null`, the function returns `null`.
**Description**
Returns a new string representing the input string converted to upper case.
**Supported types**
| str | result |
| --- | --- |
| keyword | keyword |
| text | keyword |
**Example**
```esql
ROW message = "Some Text"
| EVAL message_upper = TO_UPPER(message)
```
| message:keyword | message_upper:keyword |
| --- | --- |
| Some Text | SOME TEXT |