jasonstack commented on code in PR #3892: URL: https://github.com/apache/cassandra/pull/3892#discussion_r1953806969
########## test/distributed/org/apache/cassandra/distributed/test/ReplicaFilteringProtectionTest.java: ########## @@ -71,6 +72,24 @@ public static void teardown() cluster.close(); } + @Test + public void testMissingStaticRowWithNonStaticExpression() + { + cluster.schemaChange(withKeyspace("CREATE TABLE %s.single_predicate (pk0 int, ck0 int, ck1 int, s0 int static, s1 int static, v0 int, PRIMARY KEY (pk0, ck0, ck1)) " + + "WITH CLUSTERING ORDER BY (ck0 ASC, ck1 DESC) AND read_repair = 'NONE'")); + + cluster.get(1).executeInternal(withKeyspace("INSERT INTO %s.single_predicate (pk0, ck0, ck1, s0, s1, v0) " + + "VALUES (0, 1, 2, 3, 4, 5) USING TIMESTAMP 1")); + cluster.get(2).executeInternal(withKeyspace("UPDATE %s.single_predicate USING TIMESTAMP 2 SET s0 = 6, s1 = 7, v0 = 8 " + + "WHERE pk0 = 0 AND ck0 = 9 AND ck1 = 10")); Review Comment: why the ck0 and ck1 are 9 and 10? it should be 1 and 2. -- 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: pr-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org