Skip to content

Commit

Permalink
[ES|QL] Add to_lower and to_upper functions (elastic#175122)
Browse files Browse the repository at this point in the history
## Summary

Syncing with https://github.com/elastic/elasticsearch/pull/104309/files


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
  • Loading branch information
dej611 authored and pull[bot] committed Feb 5, 2024
1 parent 430b462 commit da454ac
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions packages/kbn-monaco/src/esql/lib/ast/definitions/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,32 @@ export const evalFunctionsDefinitions: FunctionDefinition[] = [
},
],
},
{
name: 'to_lower',
description: i18n.translate('monaco.esql.definitions.toLowerDoc', {
defaultMessage: 'Returns a new string representing the input string converted to lower case.',
}),
signatures: [
{
params: [{ name: 'field', type: 'string' }],
returnType: 'string',
examples: ['from index | eval to_lower(field1)'],
},
],
},
{
name: 'to_upper',
description: i18n.translate('monaco.esql.definitions.toUpperDoc', {
defaultMessage: 'Returns a new string representing the input string converted to upper case.',
}),
signatures: [
{
params: [{ name: 'field', type: 'string' }],
returnType: 'string',
examples: ['from index | eval to_upper(field1)'],
},
],
},
{
name: 'trim',
description: i18n.translate('monaco.esql.definitions.trimDoc', {
Expand Down

0 comments on commit da454ac

Please sign in to comment.