Update MergeTreeData.cpp

This commit is contained in:
alexey-milovidov 2017-07-31 20:44:41 +03:00 committed by GitHub
parent fdb7e080be
commit 4877aa394c

View File

@ -1032,7 +1032,7 @@ MergeTreeData::AlterDataPartTransactionPtr MergeTreeData::alterDataPart(
auto compression_method = this->context.chooseCompressionMethod(
this->getTotalActiveSizeInBytes(),
static_cast<double> (this->getTotalCompressedSize()) / this->getTotalActiveSizeInBytes());
static_cast<double>(this->getTotalCompressedSize()) / this->getTotalActiveSizeInBytes());
ExpressionBlockInputStream in(part_in, expression);
MergedColumnOnlyOutputStream out(*this, full_path + part->name + '/', true, compression_method, false);
in.readPrefix();