File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
integration-tests/src/test/java/com/datastax/oss/driver/querybuilder Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -113,16 +113,18 @@ public void should_create_table_with_chunk_length_in_kb() {
113
113
@ Test
114
114
@ BackendRequirement (
115
115
type = BackendType .CASSANDRA ,
116
+ minInclusive = "3.0" ,
116
117
maxExclusive = "5.0" ,
117
- description = "chunk_length_kb was renamed to chunk_length_in_kb in Cassandra 5.0" )
118
+ description =
119
+ "Deprecated compression options should still work with Cassandra >= 3.0 & < 5.0" )
118
120
public void should_create_table_with_deprecated_options () {
119
121
try (CqlSession session = session ()) {
120
122
session .execute (
121
123
SchemaBuilder .createTable ("relation_options" )
122
124
.withPartitionKey ("id" , DataTypes .INT )
123
125
.withColumn ("name" , DataTypes .TEXT )
124
126
.withColumn ("age" , DataTypes .INT )
125
- .withLZ4Compression (4096 , 1.0 )
127
+ .withLZ4Compression (4096 , 0.8 )
126
128
.build ());
127
129
KeyspaceMetadata keyspaceMetadata =
128
130
session
@@ -133,8 +135,8 @@ public void should_create_table_with_deprecated_options() {
133
135
134
136
assertThat (describeOutput )
135
137
.contains ("'class':'org.apache.cassandra.io.compress.LZ4Compressor'" );
136
- assertThat (describeOutput ).contains ("'chunk_length_kb ':'4096'" );
137
- assertThat (describeOutput ).contains ("' crc_check_chance':' 0.8' " );
138
+ assertThat (describeOutput ).contains ("'chunk_length_in_kb ':'4096'" );
139
+ assertThat (describeOutput ).contains ("crc_check_chance = 0.8" );
138
140
}
139
141
}
140
142
You can’t perform that action at this time.
0 commit comments