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


##########
src/java/org/apache/cassandra/serializers/ListSerializer.java:
##########
@@ -224,10 +226,29 @@ public Class<List<T>> getType()
     }
 
     @Override
-    public ByteBuffer getSerializedValue(ByteBuffer collection, ByteBuffer 
key, AbstractType<?> comparator)
+    public ByteBuffer getSerializedValue(ByteBuffer collection, ByteBuffer 
index, AbstractType<?> comparator)
     {
-        // We don't allow selecting an element of a list, so we don't need 
this.
-        throw new UnsupportedOperationException();
+        try
+        {
+            ProtocolVersion version = ProtocolVersion.V3;

Review Comment:
   `org.apache.cassandra.serializers.SetSerializer#getSerializedValue` and 
`org.apache.cassandra.serializers.MapSerializer#getSerializedValue` both do 
this so its consistent at least...



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