mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 04:26:48 +00:00
In this patch we add another test case for a case where ALLOW FILTERING should not be required (and Cassandra doesn't require it) but Scylla does. This problem was introduced by pull request #9122. The pull request fixed an incorrect query (see issue #9085) involving both an index and a multi-column restriction on a compound clustering key - and the fix is using filtering. However, in one specific case involving a full prefix, it shouldn't require filtering. This test reproduces this case. The new test passes on Cassandra (and also theoretically, should pass), but fails on Scylla - the check_af_optional() call fails because Scylla made the ALLOW FILTERING mandatory for that case. Signed-off-by: Nadav Har'El <nyh@scylladb.com> Message-Id: <20210803092046.1677584-1-nyh@scylladb.com>