mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-02 04:56:58 +00:00
It turns out that there is a difference between how Scylla and Cassandra handle multiple restrictions on the same column - for example "WHERE c = 0 and c >0". Cassandra treats all such cases as invalid queries, whereas Scylla *allows* them. This test demonstrates this difference (it is marked "scylla_only" because it's a Scylla-only feature), and also verifies that the results of such queries on Scylla are correct - i.e., if the two restrictions conflict the result is empty, and if the two restrictions overlap, the result can be non-empty. The test passes, verifying that although Scylla differs from Cassandra on this, its behavior is correct. Signed-off-by: Nadav Har'El <nyh@scylladb.com> Message-Id: <20220512165107.644932-1-nyh@scylladb.com>