smiklosovic commented on code in PR #4411:
URL: https://github.com/apache/cassandra/pull/4411#discussion_r2454806644


##########
src/java/org/apache/cassandra/schema/ColumnMetadata.java:
##########
@@ -765,7 +805,16 @@ public ColumnMetadata deserialize(DataInputPlus in, Types 
types, UserFunctions f
             int uniqueId = NO_UNIQUE_ID;
             if (version.isAtLeast(Version.V7))
                 uniqueId = in.readVInt32();
-            return new ColumnMetadata(ksName, tableName, new 
ColumnIdentifier(nameBB, name), type, uniqueId, position, kind, mask, 
constraints);
+            String comment = null;
+            String securityLabel = null;
+            if (version.isAtLeast(Version.V8))

Review Comment:
               if (version.isAtLeast(Version.V8))
               {
                   String comment = in.readBoolean() ? in.readUTF() : null;
                   String securityLabel = in.readBoolean() ? in.readUTF() : 
null;



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