mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -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: [
|
signatures: [
|
||||||
{
|
{
|
||||||
params: [{ name: 'field', type: 'number' }],
|
params: [
|
||||||
|
{ name: 'field', type: 'number' },
|
||||||
|
{ name: 'decimals', type: 'number', optional: true },
|
||||||
|
],
|
||||||
returnType: 'number',
|
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