Alex Petrov created CASSANDRA-13917: ---------------------------------------
Summary: COMPACT STORAGE inserts accept hidden column1 and value columns Key: CASSANDRA-13917 URL: https://issues.apache.org/jira/browse/CASSANDRA-13917 Project: Cassandra Issue Type: Bug Reporter: Alex Petrov Priority: Minor {code} @Test public void testCompactStorage() throws Throwable { createTable("CREATE TABLE %s (a int PRIMARY KEY, b int, c int) WITH COMPACT STORAGE"); assertInvalid("INSERT INTO %s (a, b, c, column1) VALUES (?, ?, ?, ?)", 1, 1, 1, ByteBufferUtil.bytes('a')); // This one fails with Some clustering keys are missing: column1, which is still wrong assertInvalid("INSERT INTO %s (a, b, c, value) VALUES (?, ?, ?, ?)", 1, 1, 1, ByteBufferUtil.bytes('a')); assertInvalid("INSERT INTO %s (a, b, c, column1, value) VALUES (?, ?, ?, ?, ?)", 1, 1, 1, ByteBufferUtil.bytes('a'), ByteBufferUtil.bytes('b')); assertEmpty(execute("SELECT * FROM %s")); } {code} Gladly, these writes are no-op, even though they succeed. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org