bereng commented on code in PR #2896:
URL: https://github.com/apache/cassandra/pull/2896#discussion_r1404004336


##########
test/unit/org/apache/cassandra/db/SchemaCQLHelperTest.java:
##########
@@ -444,13 +446,17 @@ public void testSnapshot() throws Throwable
                          containsString("ALTER TABLE " + keyspace() + "." + 
tableName + " DROP reg3 USING TIMESTAMP 10000;"),
                          containsString("ALTER TABLE " + keyspace() + "." + 
tableName + " ADD reg3 int;")));
 
-        assertThat(schema, containsString("CREATE INDEX IF NOT EXISTS " + 
tableName + "_reg2_idx ON " + keyspace() + '.' + tableName + " (reg2);"));
+        final boolean isIndexLegacy = 
DatabaseDescriptor.getDefaultSecondaryIndex().equals(CassandraIndex.NAME);

Review Comment:
   I wonder if it would read better to move this that is repeated so much into 
a method in CQLTester with some javadoc explanation



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to