tkhurana commented on code in PR #1884:
URL: https://github.com/apache/phoenix/pull/1884#discussion_r1600621168


##########
phoenix-core-client/src/main/java/org/apache/phoenix/execute/MutationState.java:
##########
@@ -1366,6 +1375,7 @@ private void sendMutations(Iterator<Entry<TableInfo, 
List<Mutation>>> mutationsI
                     while (itrListMutation.hasNext()) {
                         final List<Mutation> mutationBatch = 
itrListMutation.next();
                         currentMutationBatch = mutationBatch;
+                        Object[] resultObjects = new 
Object[mutationBatch.size()];

Review Comment:
   @jinggou We should only pass the results array when auto-commit is set to 
true and batch size is 1 since this is the only case we are handling currently. 
Let's make that explicit in the code.



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

Reply via email to