dcapwell commented on code in PR #4879:
URL: https://github.com/apache/cassandra/pull/4879#discussion_r3424428200


##########
test/distributed/org/apache/cassandra/distributed/test/accord/AccordCQLTestBase.java:
##########
@@ -3604,4 +3604,34 @@ public void userSeesInvalidRejection() throws Exception
                       .hasMessage("Attempted to set an element on a list which 
is null");
         });
     }
+
+    @Test
+    public void testLetComparisonTransactionStatement() throws Throwable
+    {
+        test("CREATE TABLE " + qualifiedAccordTableName + " (k int PRIMARY 
KEY, v int) WITH " + transactionalMode.asCqlParam(), cluster -> {
+            String insert = "BEGIN TRANSACTION\n" +
+                            "INSERT INTO " + qualifiedAccordTableName + " (k, 
v) VALUES (1, 2);\n" +
+                            "INSERT INTO " + qualifiedAccordTableName + " (k, 
v) VALUES (2, 3);\n" +
+                            "COMMIT TRANSACTION";
+
+            cluster.coordinator(1).executeWithResult(insert, 
ConsistencyLevel.SERIAL);
+
+            String query = "BEGIN TRANSACTION\n" +

Review Comment:
   I pointed out in the code you have a bug with complex types.  if you are 
doing a UDT field access we convert that to a UDT compare.  If you are working 
with collection elements we convert that to a collection compare



-- 
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