ygerzhedovich commented on a change in pull request #522:
URL: https://github.com/apache/ignite-3/pull/522#discussion_r774586877
##########
File path:
modules/client-common/src/main/java/org/apache/ignite/client/proto/query/event/BatchExecuteResult.java
##########
@@ -64,7 +64,7 @@ public BatchExecuteResult(int[] updateCnts) {
* @return Update count for DML queries.
*/
public int[] updateCounts() {
- return updateCnts;
+ return updateCnts == null ? new int[0] : updateCnts;
Review comment:
seems it should be cached instead of create new array every time
--
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]