This is an automated email from the ASF dual-hosted git repository.

smiklosovic pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git


The following commit(s) were added to refs/heads/trunk by this push:
     new d1a9bb32 CASSANDRA-18742 alignement
d1a9bb32 is described below

commit d1a9bb3295aabc7df4ad0b1dce29bdda9acc5fe7
Author: Stefan Miklosovic <[email protected]>
AuthorDate: Mon Sep 18 15:46:53 2023 +0200

    CASSANDRA-18742 alignement
    
    patch by Stefan Miklosovic; reviewed by Maxim Muzafarov, Brandon Williams 
for CASSANDRA-18742
---
 configuration_test.py     | 4 ++--
 counter_test.py           | 2 +-
 cqlsh_tests/test_cqlsh.py | 2 +-
 dtest.py                  | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/configuration_test.py b/configuration_test.py
index 2acf18ec..04eb220a 100644
--- a/configuration_test.py
+++ b/configuration_test.py
@@ -35,8 +35,8 @@ class TestConfiguration(Tester):
 
         create_table_query = "CREATE TABLE test_table (row varchar, name 
varchar, value int, PRIMARY KEY (row, name));"
         alter_chunk_len_query = "ALTER TABLE test_table WITH " \
-                                "compression = {{'sstable_compression' : 
'SnappyCompressor', " \
-                                "'chunk_length_kb' : {chunk_length}}};"
+                                "compression = {{'class' : 'SnappyCompressor', 
" \
+                                "'chunk_length_in_kb' : {chunk_length}}};"
 
         session.execute(create_table_query)
 
diff --git a/counter_test.py b/counter_test.py
index aa8215e0..44d37fcf 100644
--- a/counter_test.py
+++ b/counter_test.py
@@ -177,7 +177,7 @@ class TestCounters(Tester):
                 c counter
             )
         """
-        query = query + "WITH compression = { 'sstable_compression' : 
'SnappyCompressor' }"
+        query = query + "WITH compression = { 'class' : 'SnappyCompressor' }"
 
         session.execute(query)
         time.sleep(2)
diff --git a/cqlsh_tests/test_cqlsh.py b/cqlsh_tests/test_cqlsh.py
index ed64f358..044f9f44 100644
--- a/cqlsh_tests/test_cqlsh.py
+++ b/cqlsh_tests/test_cqlsh.py
@@ -624,7 +624,7 @@ CREATE TABLE has_all_types (
     uuidcol uuid,
     varcharcol varchar,
     varintcol varint
-) WITH compression = {'sstable_compression':'LZ4Compressor'};
+) WITH compression = {'class':'LZ4Compressor'};
 
 INSERT INTO has_all_types (num, intcol, asciicol, bigintcol, blobcol, 
booleancol,
                            decimalcol, doublecol, floatcol, textcol,
diff --git a/dtest.py b/dtest.py
index 4a167e12..859922eb 100644
--- a/dtest.py
+++ b/dtest.py
@@ -335,7 +335,7 @@ def create_cf(session, name, key_type="varchar", 
speculative_retry=None, read_re
         query = '%s AND CLUSTERING ORDER BY (%s)' % (query, clustering)
 
     if compression is not None:
-        query = '%s AND compression = { \'sstable_compression\': 
\'%sCompressor\' }' % (query, compression)
+        query = '%s AND compression = { \'class\': \'%sCompressor\' }' % 
(query, compression)
     else:
         # if a compression option is omitted, C* will default to lz4 
compression
         query += ' AND compression = {}'


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to