Skip to content

Commit 20916fc

Browse files
committed
Expect test_order_by_success_case to fail on scylla
Scylla does not support ordering other than in PK, it throws followin exception: ``` Order by currently only supports the ordering of columns following their declared order in the PRIMARY KEY ```
1 parent dc299d0 commit 20916fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/cqlengine/query/test_queryset.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
from cassandra.util import uuid_from_time
4040
from cassandra.cqlengine.connection import get_session
4141
from tests.integration import PROTOCOL_VERSION, CASSANDRA_VERSION, greaterthancass20, greaterthancass21, \
42-
greaterthanorequalcass30, TestCluster, requires_collection_indexes
42+
greaterthanorequalcass30, TestCluster, requires_collection_indexes, xfail_scylla
4343
from tests.integration.cqlengine import execute_count, DEFAULT_KEYSPACE
4444

4545

@@ -601,6 +601,8 @@ def test_distinct_with_explicit_count(self):
601601

602602
@requires_collection_indexes
603603
class TestQuerySetOrdering(BaseQuerySetUsage):
604+
@xfail_scylla(
605+
reason="Scylla only supports PRIMARY KEY ordering: https://github.com/scylladb/python-driver/issues/343")
604606
@execute_count(2)
605607
def test_order_by_success_case(self):
606608
q = TestModel.objects(test_id=0).order_by('attempt_id')

0 commit comments

Comments
 (0)