mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 20:46:56 +00:00
Merge pull request https://github.com/scylladb/scylla/pull/6834 by Juliusz Stasiewicz: NULLs used to give false positives in GT, LT, GEQ and LEQ ops performed upon ALLOW FILTERING. That was a consequence of not distinguishing NULL from an empty buffer. This patch excludes NULLs on high level, preventing them from entering LHS of any comparison, i.e. it assumes that any binary operation should return false whenever the LHS operand is NULL (note: at the moment filters with RHS NULL, such as ...WHERE x=NULL ALLOW FILTERING, return empty sets anyway). Fixes #6295 * '6295-do-not-compare-nulls-v2' of github.com:jul-stas/scylla: filtering_test: check that NULLs do not compare to normal values cql3/restrictions: exclude NULLs from comparison in filtering