Skip to content

Commit a4e59b2

Browse files
committed
rebase to 4.x
1 parent 88e32df commit a4e59b2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,4 +314,13 @@ public void should_generate_create_table_time_window_compaction() {
314314
.hasCql(
315315
"CREATE TABLE bar (k int PRIMARY KEY,v text) WITH compaction={'class':'TimeWindowCompactionStrategy','compaction_window_size':10,'compaction_window_unit':'DAYS','timestamp_resolution':'MICROSECONDS','unsafe_aggressive_sstable_expiration':false}");
316316
}
317+
318+
@Test
319+
public void should_generate_vector_column(){
320+
assertThat(createTable("foo")
321+
.withPartitionKey("k", DataTypes.INT)
322+
.withColumn("v", DataTypes.custom("org.apache.cassandra.db.marshal.VectorType(org.apache.cassandra.db.marshal.FloatType,3)")
323+
))
324+
.hasCql("CREATE TABLE foo (k int PRIMARY KEY,v VECTOR<FLOAT, 3>)");
325+
}
317326
}

0 commit comments

Comments
 (0)