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

@ -64,7 +64,7 @@ class QueryBuilder {
$this->addRequiredData(self::REQUIRED_INPUT_MEASUREMENT, $measurement);
$this->addToQueryArray(
self::FLUX_PART_FILTERS,
new Filter(KeyValue::set('_measurement', $measurement))
new Filter(KeyValue::setEquals('_measurement', $measurement))
);
return $this;
}