Issue description:
There is an issue on TSDB side with handling incoming Flux queries which contains negation operators in its body (!= or !~). Sometimes, the results of such queries execution are incorrect.
Environment info:
System info: Linux 4.15.0-65-generic x86_64
InfluxDB version: v1.7.7
Config:
Enable Flux:
# ...
[http]
# ...
flux-enabled = true
# ...
Steps to reproduce:
Start InfluxDB and write these points to the launched instance (one measurement - different tags):
Actual behavior:
However, the result of the query provided above is empty.
Note:
After changing filter function's body from fn: (r) => r.host != "tagA" to fn: (r) => r._measurement == "test_metric" and r.host != "tagA" I've got the desired result:
Issue description: There is an issue on TSDB side with handling incoming
Flux
queries which contains negation operators in its body (!=
or!~
). Sometimes, the results of such queries execution are incorrect.Environment info:
Linux 4.15.0-65-generic x86_64
v1.7.7
Config: Enable Flux:
Steps to reproduce:
one measurement - different tags
):Flux
query to validate that all series have been written successfully:The result should contain two rows with data:
Flux
query:Expected behavior: The result of the query provided above should look like this output:
Actual behavior: However, the result of the query provided above is
empty
.Note: After changing
filter
function's body fromfn: (r) => r.host != "tagA"
tofn: (r) => r._measurement == "test_metric" and r.host != "tagA"
I've got the desired result:Result: