You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2023/01/10 18:15:47 UTC

[GitHub] [cassandra] nvharikrishna commented on pull request #2050: CASSANDRA-18113 fqltool dump NPE fix.

nvharikrishna commented on PR #2050:
URL: https://github.com/apache/cassandra/pull/2050#issuecomment-1377663244

   If I create a table something like this:
   
   `CREATE TABLE t1 ( id int PRIMARY KEY , v1 int, v2 int, v3 int) ;`
   
   and inserted a row using:
   
   ```
   try (CqlSession cqlSession = CqlSession.builder().build()) {
       PreparedStatement preparedStatement = cqlSession.prepare("INSERT INTO ks1.t1 (id, v1, v2, v3) VALUES (?, ?, ?, ?)");
       cqlSession.execute(preparedStatement.bind(1, 1, 1, 1));
   }
   ```
   
   The output of fqltool looks something like this:
   
   ```
   Type: single-query
   Query start time: 1673373829119
   Protocol version: 5
   Generated timestamp:-9223372036854775808
   Generated nowInSeconds:1673373829
   Query: INSERT INTO ks1.t1 (id, v1, v2, v3) VALUES (?, ?, ?, ?)
   Values: 
   00000000 00 00 00 01                                      ····             
   00000000 00 00 00 01                                      ····             
   -----
   00000000 00 00 00 01                                      ····             
   -----
   00000000 00 00 00 01                                      ····             
   -----
   ```
   
   `-----` is not printed between the first and second value
   ```
   Values: 
   00000000 00 00 00 01                                      ····             
   00000000 00 00 00 01                                      ····             
   ```


-- 
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-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org