blerer commented on code in PR #2655:
URL: https://github.com/apache/cassandra/pull/2655#discussion_r1376227631


##########
src/java/org/apache/cassandra/cql3/Maps.java:
##########
@@ -188,7 +174,7 @@ public Term prepare(String keyspace, ColumnSpecification 
receiver) throws Invali
 
             ColumnSpecification keySpec = Maps.keySpecOf(receiver);
             ColumnSpecification valueSpec = Maps.valueSpecOf(receiver);
-            Map<Term, Term> values = new HashMap<>(entries.size());
+            List<Term> values = new ArrayList<>(entries.size() << 1);

Review Comment:
   I will add some doc to explain the logic



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