提交 00ae32c9 编写于 作者: N Nikolai Kochetov 提交者: alexey-milovidov

renamed approximate_number_of_rows_in_part to number_of_rows_in_part

上级 e6121525
......@@ -82,7 +82,7 @@ MergeTreeBlockSizePredictor::MergeTreeBlockSizePredictor(
const MergeTreeData::DataPartPtr & data_part_, const Names & columns, const Block & sample_block)
: data_part(data_part_)
{
approximate_number_of_rows_in_part = data_part->getExactSizeRows();
number_of_rows_in_part = data_part->getExactSizeRows();
/// Initialize with sample block untill update won't called.
initialize(sample_block);
}
......@@ -124,7 +124,7 @@ void MergeTreeBlockSizePredictor::initialize(const Block & sample_block)
bytes_per_row_global = fixed_columns_bytes_per_row;
for (auto & info : dynamic_columns_infos)
{
info.bytes_per_row_global /= approximate_number_of_rows_in_part;
info.bytes_per_row_global /= number_of_rows_in_part;
info.bytes_per_row = info.bytes_per_row_global;
bytes_per_row_global += info.bytes_per_row_global;
......
......@@ -137,7 +137,7 @@ protected:
size_t max_size_per_row_fixed = 0;
double max_size_per_row_dynamic = 0;
size_t approximate_number_of_rows_in_part;
size_t number_of_rows_in_part;
bool is_initialized_in_update = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册