mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 04:26:48 +00:00
Issues #4476 and #8489, and also Cassandra's CASSANDRA-10715, all request that filtering with "WHERE v=NULL" should return the rows where the column v is unset. However, we made a deliberate decision to do something else: That "WHERE v=NULL" should match no row. Exactly like it does in SQL. This is what this test verifies - that "WHERE v=NULL" never matches any row - not even rows where "v" is unset. This test is expected to fail on Cassandra (so marked cassandra_bug), because in Cassandra the "WHERE v=NULL" restriction is forbidden, instead of succeeding and returning nothing. Although we differ here from Cassandra, after a lot of deliberation we decided that Scylla's behavior is the correct one, so this test verifies it. Refs #4776. Refs #8489. Signed-off-by: Nadav Har'El <nyh@scylladb.com> Message-Id: <20210426183145.323301-1-nyh@scylladb.com>