Skip to content

Commit 91970ef

Browse files
committed
Fixed bugs 2
1 parent 815426a commit 91970ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/library/yql/dq/runtime/dq_arrow_helpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ class TBlockSplitter : public IBlockSplitter {
10601060
SplitStack.emplace_back(*this, UnwrapItem(values, count));
10611061
std::vector<std::vector<arrow::Datum>> result;
10621062

1063-
const auto estimatedSize = SplitStack.back().GetSize() / ChunkSizeLimit;
1063+
const auto estimatedSize = SplitStack.back().GetSize() / std::max(ChunkSizeLimit, ui64(1));
10641064
result.reserve(estimatedSize);
10651065
SplitStack.reserve(estimatedSize);
10661066
while (!SplitStack.empty()) {

0 commit comments

Comments
 (0)