Skip to content

Commit 5734702

Browse files
gridnevvvitzinal
authored andcommitted
fix stream lookup bytes calculation (ydb-platform#12026) (ydb-platform#12101)
1 parent c861790 commit 5734702

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ydb/core/kqp/runtime/kqp_stream_lookup_worker.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,7 @@ class TKqpLookupRows : public TKqpStreamLookupWorker {
377377
}
378378
}
379379

380-
storageRowSize = std::max(storageRowSize, (i64)8);
381-
382-
if (rowsInBatch && storageRowSize > freeSpace - (i64)resultStats.ResultBytesCount) {
380+
if (rowsInBatch && rowSize > freeSpace - (i64)resultStats.ResultBytesCount) {
383381
row.DeleteUnreferenced();
384382
sizeLimitExceeded = true;
385383
break;
@@ -388,6 +386,8 @@ class TKqpLookupRows : public TKqpStreamLookupWorker {
388386
batch.push_back(std::move(row));
389387
++rowsInBatch;
390388

389+
storageRowSize = std::max(storageRowSize, (i64)8);
390+
391391
resultStats.ReadRowsCount += 1;
392392
resultStats.ReadBytesCount += storageRowSize;
393393
resultStats.ResultRowsCount += 1;

0 commit comments

Comments
 (0)