OleksiienkoMykyta commented on issue #1832: URL: https://github.com/apache/cassandra-gocql-driver/issues/1832#issuecomment-2437615842
I have tested it and compared behavior with the Python driver as well as cqlsh and ensured that everything works according to the documentation (https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v5.spec). To set SERIAL consistency you can do the following ```go cluster := gocql.NewCluster("***.**.*.*:****") cluster.Keyspace = "test" cluster.SerialConsistency = gocql.Serial ``` or directly to query ``` session.Query("INSERT INTO test.test_table (id) VALUES (1) IF NOT EXISTS").SerialConsistency(Serial) ``` It will set the SERIAL consistency level for the serial phase of conditional updates. After that, you can check the frame content and ensure that the serial_consistency is presented as SERIAL. ``` [execute id=52 FC 92 9D FB 65 5C 36 6E 37 68 E1 C6 15 87 8F params=[query_params consistency=QUORUM skip_meta=true page_size=5000 paging_state="" serial_consistency=SERIAL default_timestamp=true values=[] keyspace=]] ``` -- 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: commits-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org