Add addBottom function

Signed-off-by: David Arendsen <darendsen@gamepoint.com>
This commit is contained in:
David Arendsen 2023-03-08 19:20:26 +01:00
commit 9e2bde4217
5 changed files with 91 additions and 0 deletions

View file

@ -41,6 +41,11 @@ final class QueryBuilderTest extends TestCase
['20s', 'mean', ['timeDst' => '_time']],
'|> aggregateWindow(every: 20s, fn: mean, timeDst: "_time") '
],
'addBottom' => [
'addBottom',
[2, ['_value']],
'|> bottom(n: 2, columns: ["_value"]) '
],
'addCount' => [
'addCount',
['_value'],