Skip to content

Commit 7e3cca7

Browse files
author
Michael Karsten
committed
fix: use new config name
1 parent 7982f41 commit 7e3cca7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

query-builder/src/main/java/com/datastax/oss/driver/api/querybuilder/schema/RelationOptions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ default SelfT withCompression(
205205
ImmutableMap.of(
206206
"class",
207207
compressionAlgorithmName,
208-
"chunk_length_kb",
208+
"chunk_length_in_kb",
209209
chunkLengthKB,
210210
"crc_check_chance",
211211
crcCheckChance));

query-builder/src/test/java/com/datastax/dse/driver/api/querybuilder/schema/CreateDseTableTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public void should_generate_create_table_lz4_compression_options() {
201201
.withColumn("v", DataTypes.TEXT)
202202
.withLZ4Compression(1024, .5))
203203
.hasCql(
204-
"CREATE TABLE bar (k int PRIMARY KEY,v text) WITH compression={'class':'LZ4Compressor','chunk_length_kb':1024,'crc_check_chance':0.5}");
204+
"CREATE TABLE bar (k int PRIMARY KEY,v text) WITH compression={'class':'LZ4Compressor','chunk_length_in_kb':1024,'crc_check_chance':0.5}");
205205
}
206206

207207
@Test
@@ -223,7 +223,7 @@ public void should_generate_create_table_snappy_compression_options() {
223223
.withColumn("v", DataTypes.TEXT)
224224
.withSnappyCompression(2048, .25))
225225
.hasCql(
226-
"CREATE TABLE bar (k int PRIMARY KEY,v text) WITH compression={'class':'SnappyCompressor','chunk_length_kb':2048,'crc_check_chance':0.25}");
226+
"CREATE TABLE bar (k int PRIMARY KEY,v text) WITH compression={'class':'SnappyCompressor','chunk_length_in_kb':2048,'crc_check_chance':0.25}");
227227
}
228228

229229
@Test
@@ -245,7 +245,7 @@ public void should_generate_create_table_deflate_compression_options() {
245245
.withColumn("v", DataTypes.TEXT)
246246
.withDeflateCompression(4096, .1))
247247
.hasCql(
248-
"CREATE TABLE bar (k int PRIMARY KEY,v text) WITH compression={'class':'DeflateCompressor','chunk_length_kb':4096,'crc_check_chance':0.1}");
248+
"CREATE TABLE bar (k int PRIMARY KEY,v text) WITH compression={'class':'DeflateCompressor','chunk_length_in_kb':4096,'crc_check_chance':0.1}");
249249
}
250250

251251
@Test

query-builder/src/test/java/com/datastax/oss/driver/api/querybuilder/schema/CreateTableTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public void should_generate_create_table_lz4_compression_options() {
205205
.withColumn("v", DataTypes.TEXT)
206206
.withLZ4Compression(1024, .5))
207207
.hasCql(
208-
"CREATE TABLE bar (k int PRIMARY KEY,v text) WITH compression={'class':'LZ4Compressor','chunk_length_kb':1024,'crc_check_chance':0.5}");
208+
"CREATE TABLE bar (k int PRIMARY KEY,v text) WITH compression={'class':'LZ4Compressor','chunk_length_in_kb':1024,'crc_check_chance':0.5}");
209209
}
210210

211211
@Test
@@ -227,7 +227,7 @@ public void should_generate_create_table_snappy_compression_options() {
227227
.withColumn("v", DataTypes.TEXT)
228228
.withSnappyCompression(2048, .25))
229229
.hasCql(
230-
"CREATE TABLE bar (k int PRIMARY KEY,v text) WITH compression={'class':'SnappyCompressor','chunk_length_kb':2048,'crc_check_chance':0.25}");
230+
"CREATE TABLE bar (k int PRIMARY KEY,v text) WITH compression={'class':'SnappyCompressor','chunk_length_in_kb':2048,'crc_check_chance':0.25}");
231231
}
232232

233233
@Test
@@ -249,7 +249,7 @@ public void should_generate_create_table_deflate_compression_options() {
249249
.withColumn("v", DataTypes.TEXT)
250250
.withDeflateCompression(4096, .1))
251251
.hasCql(
252-
"CREATE TABLE bar (k int PRIMARY KEY,v text) WITH compression={'class':'DeflateCompressor','chunk_length_kb':4096,'crc_check_chance':0.1}");
252+
"CREATE TABLE bar (k int PRIMARY KEY,v text) WITH compression={'class':'DeflateCompressor','chunk_length_in_kb':4096,'crc_check_chance':0.1}");
253253
}
254254

255255
@Test

0 commit comments

Comments
 (0)