@@ -349,13 +349,15 @@ class TKqpLookupRows : public TKqpStreamLookupWorker {
349
349
auto row = HolderFactory.CreateDirectArrayHolder (Columns.size (), rowItems);
350
350
351
351
i64 rowSize = 0 ;
352
+ i64 storageRowSize = 0 ;
352
353
for (size_t colIndex = 0 , resultColIndex = 0 ; colIndex < Columns.size (); ++colIndex) {
353
354
const auto & column = Columns[colIndex];
354
355
if (IsSystemColumn (column.Name )) {
355
356
NMiniKQL::FillSystemColumn (rowItems[colIndex], result.ShardId , column.Id , column.PType );
356
357
rowSize += sizeof (NUdf::TUnboxedValue);
357
358
} else {
358
359
YQL_ENSURE (resultColIndex < resultRow.size ());
360
+ storageRowSize += resultRow[resultColIndex].Size ();
359
361
rowItems[colIndex] = NMiniKQL::GetCellValue (resultRow[resultColIndex], column.PType );
360
362
rowSize += NMiniKQL::GetUnboxedValueSize (rowItems[colIndex], column.PType ).AllocatedBytes ;
361
363
++resultColIndex;
@@ -371,9 +373,9 @@ class TKqpLookupRows : public TKqpStreamLookupWorker {
371
373
batch.push_back (std::move (row));
372
374
373
375
resultStats.ReadRowsCount += 1 ;
374
- resultStats.ReadBytesCount += rowSize ;
376
+ resultStats.ReadBytesCount += storageRowSize ;
375
377
resultStats.ResultRowsCount += 1 ;
376
- resultStats.ResultBytesCount += rowSize ;
378
+ resultStats.ResultBytesCount += storageRowSize ;
377
379
}
378
380
379
381
if (result.UnprocessedResultRow == result.ReadResult ->Get ()->GetRowsCount ()) {
0 commit comments