We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 815426a commit 91970efCopy full SHA for 91970ef
ydb/library/yql/dq/runtime/dq_arrow_helpers.cpp
@@ -1060,7 +1060,7 @@ class TBlockSplitter : public IBlockSplitter {
1060
SplitStack.emplace_back(*this, UnwrapItem(values, count));
1061
std::vector<std::vector<arrow::Datum>> result;
1062
1063
- const auto estimatedSize = SplitStack.back().GetSize() / ChunkSizeLimit;
+ const auto estimatedSize = SplitStack.back().GetSize() / std::max(ChunkSizeLimit, ui64(1));
1064
result.reserve(estimatedSize);
1065
SplitStack.reserve(estimatedSize);
1066
while (!SplitStack.empty()) {
0 commit comments