"Is empty" vs "Is not empty" mismatch in v0.45.2.1

Just updated to v0.45.2.1

Selecting the "Is empty" filter on the notebook builder applies the "Is not empty" filter.

The opposite is true as well. Both shown below
Screenshot 2023-02-16 at 8.31.35 AM

Screenshot 2023-02-16 at 8.29.19 AM

@wj4, can you reproduce this using a question built on the Sample Database? Or does it only happen with some tables/databases?

Sorry - perhaps a bit light on the details.

"Deleted At" in the screenshot above is a data field. This issue so far only seems to manifest when filtering on date fields.

I was able to replicate in sample database with a filter on people.created_at

Thanks for the additional information!

An issue exists mentioning this:

Essentially, it is getting reversed because it is in the "Exclude" clause which basically reverses whatever you set.

So if you exclude "is empty", then it only show the not empties, vs if you exclude "is not empty", then it would only show the empties.

I agree that the double negative is confusing on first glance. Maybe worth moving isempty/isnull type operations to a submenu for "Boolean Operations" or just add a section in the top level dropdown menu that already exists. These operations are already very commonly used.

Something like this is what I have in mind: