You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite the wording of the error message Only AND and '=' operators with string values are supported in the optimized filter expression. that you get when trying currently unsupported read filters (see #13 ), it is possible to do value = N matching. However, it will always return an empty set.
juttle> read opentsdb -from :2016-01-01: -name "df.bytes.used" | head 1
┌────────────────────────────────────┬────────────────────┬─────────────────┬──────────┬──────────────────┬───────────────┐
│ time │ name │ value │ fstype │ host │ mount │
├────────────────────────────────────┼────────────────────┼─────────────────┼──────────┼──────────────────┼───────────────┤
│ 2016-02-12T07:34:04.000Z │ df.bytes.used │ 13029310464 │ ext4 │ f5796f87a78f │ /etc/hosts │
└────────────────────────────────────┴────────────────────┴─────────────────┴──────────┴──────────────────┴───────────────┘
juttle> read opentsdb -from :2016-01-01: -name "df.bytes.used" value = 13029310464
└───────────┴───────────┘
Fwiw the same happens when trying to filter on time:
Tangentially related - note this additional behavior which isn't a bug, per se, but I wanted to confirm it's intentional: if a tag was written with a value that's a number, but formatted as string (because write opentsdb would not otherwise accept it), then it's possible to filter on it as tagname = N without quoting the number, and results come back.
The read also works if i quote tag3 = '51'. I'm ambivalent on whether filter without quoting the numeric string should work; if that was accidental behavior, it would fine to remove it.
filtering by time: I'm not sure we should support this anywhere since we have to and from: We actually talked about this a couple of months back with @demmer
Despite the wording of the error message
Only AND and '=' operators with string values are supported in the optimized filter expression.
that you get when trying currently unsupported read filters (see #13 ), it is possible to dovalue = N
matching. However, it will always return an empty set.Fwiw the same happens when trying to filter on
time
:The time filter is not too useful and less likely, of course, but filtering on numeric fields is a likely use case.
If we truly cannot support filtering on non-string fields like
value
, let's error out, rather than silently returning nothing.The text was updated successfully, but these errors were encountered: