cube icon indicating copy to clipboard operation
cube copied to clipboard

Allow more than one .ne filter in an expression to work as expected

Open matburton opened this issue 11 years ago • 1 comments

Currently if you have an event expression like example.ne(i,1).ne(i,3) then you may get events returned with i=1 because the second .ne filter overwrites the first

The same applies to metric expressions

Hopefully wrapping all $ne filters in an $and seems like acceptable behaviour even if there's only one?

matburton avatar Mar 10 '13 15:03 matburton

I'm resurrecting this PR just to tell I had the same need and implementing $nin was far easier and hopefully more optimized on mongo, hope this helps.

Marsup avatar Oct 01 '13 12:10 Marsup