mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[ES|QL] Fixed round signature to support decimals. (#173915)
## Summary Added decimals arg to `round` function. Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
This commit is contained in:
parent
9476dfaed8
commit
0ef910e0e7
1 changed files with 8 additions and 2 deletions
|
@ -18,9 +18,15 @@ export const evalFunctionsDefinitions: FunctionDefinition[] = [
|
|||
}),
|
||||
signatures: [
|
||||
{
|
||||
params: [{ name: 'field', type: 'number' }],
|
||||
params: [
|
||||
{ name: 'field', type: 'number' },
|
||||
{ name: 'decimals', type: 'number', optional: true },
|
||||
],
|
||||
returnType: 'number',
|
||||
examples: [`from index | eval round_value = round(field)`],
|
||||
examples: [
|
||||
`from index | eval round_value = round(field)`,
|
||||
`from index | eval round_value = round(field, 2)`,
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue