From 9b4ef7f82bb7833aa43763c2d24619cc54e07b0c Mon Sep 17 00:00:00 2001 From: Israel Fruchter Date: Thu, 4 Jul 2024 21:36:51 +0300 Subject: [PATCH] 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: scylladb/python-driver#343 --- tests/integration/cqlengine/query/test_queryset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/cqlengine/query/test_queryset.py b/tests/integration/cqlengine/query/test_queryset.py index a2f9f23d48..038d403c42 100644 --- a/tests/integration/cqlengine/query/test_queryset.py +++ b/tests/integration/cqlengine/query/test_queryset.py @@ -39,7 +39,7 @@ from cassandra.util import uuid_from_time from cassandra.cqlengine.connection import get_session from tests.integration import PROTOCOL_VERSION, CASSANDRA_VERSION, greaterthancass20, greaterthancass21, \ - greaterthanorequalcass30, TestCluster, requires_collection_indexes + greaterthanorequalcass30, TestCluster, requires_collection_indexes, xfail_scylla from tests.integration.cqlengine import execute_count, DEFAULT_KEYSPACE @@ -599,6 +599,7 @@ def test_distinct_with_explicit_count(self): @requires_collection_indexes class TestQuerySetOrdering(BaseQuerySetUsage): + @xfail_scylla(reason="Scylla does not support ordering on non-primary key columns: https://github.com/scylladb/python-driver/issues/343") @execute_count(2) def test_order_by_success_case(self): q = TestModel.objects(test_id=0).order_by('attempt_id')