Skip to content

Commit 9b4ef7f

Browse files
committed
tests: xfail test_order_by_success_case for scylla
test is failing with the following: ``` cassandra.InvalidRequest: Error from server: code=2200 [Invalid query] message="Order by currently only supports the ordering of columns following their declared order in the PRIMARY KEY" ``` seems like scylla doesn't support ordering by clustering keys Ref: #343
1 parent c15ba8e commit 9b4ef7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/cqlengine/query/test_queryset.py

+2-1
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

@@ -599,6 +599,7 @@ def test_distinct_with_explicit_count(self):
599599

600600
@requires_collection_indexes
601601
class TestQuerySetOrdering(BaseQuerySetUsage):
602+
@xfail_scylla(reason="Scylla does not support ordering on non-primary key columns: https://github.com/scylladb/python-driver/issues/343")
602603
@execute_count(2)
603604
def test_order_by_success_case(self):
604605
q = TestModel.objects(test_id=0).order_by('attempt_id')

0 commit comments

Comments
 (0)