-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disallow nullness check in read filter #73
Comments
On second thoughts, I'm not entirely sure this is unsupported. What is definitely unsupported in InfluxDB is storing null values, it was disallowed in this commit because "The TSM engine does not handle null values." (tsm is the main, soon to be the only, storage option for Influx). However, the nullness check was brought up in issue#454 and closed as "obsoleted by v0.9" meaning what, that it should work now? |
I think I found how one is supposed to check for nullness of tags in idiomatic influx query language, that would be with a regex! Source (look for The WHERE Clause) Instead of
And instead of
|
@bkutil see if there is an issue we should file against InfluxDB here. It seems that for tags they just went with the surprising regex approach, but for field values i still think it's just broken, the way they treat nulls same as zeroes. And while I briefly thought we could map Still seems like the short term solution is to disallow null checks in the juttle read filter. |
It is not consistently supported by influx DB Fixes: #73
It is not consistently supported by influx DB Fixes: #73
InfluxDB appears to not support nullness checks. If I write a point that has
value2
and another point that doesn't, thenread influx value2 = null
returns an empty set.Influx also confuses nulls and zeroes, so if I write another point with
value2
set to 0, the nullness check would bring it up:The not-nullness check is also misinterpreted, as it will only show points with non-zero value:
That was for value fields. The nullness check is also completely broken for tag fields. If I write a point that has
name3
while other points do not, both the check for null and for not-null return empty sets:Given this behavior, the juttle adapter should just error out with a message like "Unsupported by InfluxDB" if the user attempts a null/not-null check in the read filter.
The text was updated successfully, but these errors were encountered: