I am writing code to bulk load data into Cassandra using 
SSTableSimpleUnsortedWriter
I changed my partition key from a composite key (long, int) to a single column 
key (long).
For creating the composite key I used a CompositeType, and I kept using it 
after changing the key to a single column.
My code didn't work until I changed the way I create the ByteBuffer not to use 
CompositeType.

The following code prints 'false'.
Do you consider this a bug?

              long val = 123L;
              ByteBuffer direct = bytes( val );
              ByteBuffer composite = CompositeType.getInstance( 
LongType.instance ).builder().add( bytes( val ) ).build();
              System.out.println( direct.equals( composite ) );

Reply via email to