Add comparison operators to KeyValue expression

Signed-off-by: davidarendsen <davidarendsen@hey.com>
This commit is contained in:
davidarendsen 2022-08-09 15:41:38 +00:00
commit 32e77b4ccd
5 changed files with 80 additions and 19 deletions

View file

@ -43,7 +43,7 @@ final class QueryBuilderTest extends TestCase {
],
'test_measurement',
'-360h',
new KeyValue('user', 'username'),
KeyValue::setEquals('user', 'username'),
'from(bucket: "example_bucket") |> range(start: "-360h") |> filter(fn: (r) => r._measurement == "test_measurement") ' .
'|> filter(fn: (r) => r.user == "username") '
],