Skip to content

Commit 76b249a

Browse files
committed
fix SplitRecordsForBlobSize (#19208)
1 parent 8792168 commit 76b249a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/library/formats/arrow/splitter/stats.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ std::vector<i64> TSimpleSerializationStat::SplitRecords(
4545
}
4646

4747
std::vector<i64> TBatchSerializationStat::SplitRecordsForBlobSize(const i64 recordsCount, const ui64 blobSize) const {
48-
if (!SerializedBytes) {
48+
if (!SerializedBytes || blobSize < GetSerializedBytesPerRecord()) {
4949
return { recordsCount };
5050
}
5151
const ui32 recordsCountPerBlob = blobSize / GetSerializedBytesPerRecord();

0 commit comments

Comments
 (0)