grange icon indicating copy to clipboard operation
grange copied to clipboard

When `%{has(HOST;foo)}` doesn't return any result `d%{has(HOST;foo)}:KEYS` returns a bunch of things

Open alokmenghrajani opened this issue 8 years ago • 2 comments

The following range query returns no data:

$ er -e '%{has(HOST;foo)}'     
[WARNING] No nodes returned

However, appending :KEYS returns some data:

$ er -e '%{has(HOST;foo)}:KEYS'
...

This behavior is a little confusing, there could be a bug somewhere?

alokmenghrajani avatar Apr 21 '17 20:04 alokmenghrajani

This may or may not be a bug :)

%{} is shorthand for %{}:CLUSTER, if there are no entries in CLUSTER (or: KEYS does not include CLUSTER) then the behaviour you describe is expected. Please re-open with more data! (Or suggestions for making more clear in https://godoc.org/github.com/xaviershay/grange )

xaviershay avatar Apr 21 '17 21:04 xaviershay

I take it back, something fishy is going on here. At first glance, appears to be returning GROUPS keys!? Will try and get a repro in range-spec.

xaviershay avatar Apr 24 '17 15:04 xaviershay