[ 
https://issues.apache.org/jira/browse/CASSANDRA-18177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17685129#comment-17685129
 ] 

Yong Jiang commented on CASSANDRA-18177:
----------------------------------------

Hi, [~maxwellguo], I was not able to reproduce the issue. Please help advise if 
it ties to any specific versions? I was reading the CASSANDRA-17698 for more 
context and knew that [~adelapena] can't reproduce it either around July 2022 
but he seems can then reproduct it later at 17/Jan/2023 with composite 
partition key. Unfortunately, I was not able to connect all the dots.

I tried it on below branch 3.11.14 and 4.1.0 but was unlucky. 

Below is the output from 3.11.14 branch:

 
{code:java}
yong_j_jiang@cassandra-single-node:~/apache-cassandra-3.11.14$ ./bin/cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 3.11.14 | CQL spec 3.4.4 | Native protocol v4]
Use HELP for help.
cqlsh> CREATE KEYSPACE k WITH replication = {'class': 'SimpleStrategy', 
'replication_factor': 1};
cqlsh> CREATE TABLE k.t ( k1 int, k2 int, v int, primary key ((k1, k2)));
cqlsh> CREATE INDEX IF NOT EXISTS ON k.t(v);
cqlsh> INSERT INTO k.t (k1, k2, v ) VALUES (1, 2, 3);
cqlsh> exit
yong_j_jiang@cassandra-single-node:~/apache-cassandra-3.11.14$ ./bin/nodetool 
flush
yong_j_jiang@cassandra-single-node:~/apache-cassandra-3.11.14$ 
./tools/bin/sstabledump 
./data/data/k/t-02778350a6bd11edac5eb102a1a5d3ab/me-1-big-Data.db 
[
  {
    "partition" : {
      "key" : [ "1", "2" ],
      "position" : 0
    },
    "rows" : [
      {
        "type" : "row",
        "position" : 28,
        "liveness_info" : { "tstamp" : "2023-02-07T07:57:32.953843Z" },
        "cells" : [
          { "name" : "v", "value" : 3 }
        ]
      }
    ]
  }
] {code}
 

> Support AbstractCompositeType with toJSONString method
> ------------------------------------------------------
>
>                 Key: CASSANDRA-18177
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18177
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Local/SSTable
>            Reporter: maxwellguo
>            Assignee: Yong Jiang
>            Priority: Normal
>             Fix For: 4.x
>
>
> As we know AbstractCompositeType do not support toJSONString method , but 
> some times 
> we do need this.
> See the  discusstion of 
> [CASSANDRA-17698|https://issues.apache.org/jira/browse/CASSANDRA-17698].



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to