EmmyMiao87 commented on a change in pull request #6026:
URL: https://github.com/apache/incubator-doris/pull/6026#discussion_r652475294



##########
File path: 
fe/fe-core/src/main/java/org/apache/doris/qe/cache/RowBatchBuilder.java
##########
@@ -167,13 +167,19 @@ public void copyRowData(RowBatch rowBatch) {
             Long key = entry.getKey();
             PartitionRange.PartitionSingle partition = cachePartMap.get(key);
             partitionRowList = entry.getValue();
+            int data_size = 0;
+            for (byte[] buf : partitionRowList) {
+                data_size += buf.length;
+            }
             updateRequest = updateRequest.toBuilder()
                     .addValues(InternalService.PCacheValue.newBuilder()
                             .setParam(InternalService.PCacheParam.newBuilder()
                                     .setPartitionKey(key)
                                     
.setLastVersion(partition.getPartition().getVisibleVersion())
                                     
.setLastVersionTime(partition.getPartition().getVisibleVersionTime())
-                                    .build()).addAllRows(
+                                    .build())
+                            .setDataSize(dataSize)
+                            .addAllRows(
                                     partitionRowList.stream().map(row -> 
ByteString.copyFrom(row))

Review comment:
       The indentation is strange




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to