Skip to content

Commit bd06599

Browse files
Bouncheckavelanarius
authored andcommitted
Fix SchemaIT
Table system_views.sstable_tasks has slightly changed, causing `should_get_virtual_metadata()` to fail. I've added a String of what Cassandra 4.1 seems to be using. The difference is `task_id` being `timeuuid` now and having additional `int` column `sstables`.
1 parent 6d6a35a commit bd06599

File tree

1 file changed

+13
-0
lines changed
  • integration-tests/src/test/java/com/datastax/oss/driver/core/metadata

1 file changed

+13
-0
lines changed

integration-tests/src/test/java/com/datastax/oss/driver/core/metadata/SchemaIT.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,19 @@ public void should_get_virtual_metadata() {
269269
+ " total bigint,\n"
270270
+ " unit text,\n"
271271
+ " PRIMARY KEY (keyspace_name, table_name, task_id)\n"
272+
+ "); */",
273+
// Cassandra 4.1
274+
"/* VIRTUAL TABLE system_views.sstable_tasks (\n"
275+
+ " keyspace_name text,\n"
276+
+ " table_name text,\n"
277+
+ " task_id timeuuid,\n"
278+
+ " completion_ratio double,\n"
279+
+ " kind text,\n"
280+
+ " progress bigint,\n"
281+
+ " sstables int,\n"
282+
+ " total bigint,\n"
283+
+ " unit text,\n"
284+
+ " PRIMARY KEY (keyspace_name, table_name, task_id)\n"
272285
+ "); */");
273286
// ColumnMetadata is as expected
274287
ColumnMetadata cm = tm.getColumn("progress").get();

0 commit comments

Comments
 (0)