polymorphic parts (development) cleanup

This commit is contained in:
CurtizJ 2019-12-18 19:41:11 +03:00
parent 6f673407ff
commit 258e8d61fb
33 changed files with 76 additions and 78 deletions

View File

@ -772,7 +772,7 @@ void IMergeTreeDataPart::checkConsistency(bool /* require_part_metadata */) cons
String IMergeTreeDataPart::typeToString(Type type)
{
switch(type)
switch (type)
{
case Type::WIDE:
return "Wide";

View File

@ -83,7 +83,7 @@ void MergeTreeIndexGranularityInfo::setNonAdaptive()
std::string getAdaptiveMrkExtension(MergeTreeDataPartType part_type)
{
switch(part_type)
switch (part_type)
{
case MergeTreeDataPartType::WIDE:
return ".mrk2";
@ -96,7 +96,7 @@ std::string getAdaptiveMrkExtension(MergeTreeDataPartType part_type)
size_t getAdaptiveMrkSize(MergeTreeDataPartType part_type, size_t columns_num)
{
switch(part_type)
switch (part_type)
{
case MergeTreeDataPartType::WIDE:
return sizeof(UInt64) * 3;

View File

@ -168,8 +168,6 @@ void MergedBlockOutputStream::writeSuffixAndFinalizePart(
new_part->bytes_on_disk = checksums.getTotalSizeOnDisk();
new_part->index_granularity = writer->getIndexGranularity();
new_part->columns_sizes = columns_sizes;
std::cerr << "(writeSuffixAndFinalizePart) part: " << new_part->getFullPath() << "\n";
std::cerr << "(writeSuffixAndFinalizePart) marks_count: " << new_part->index_granularity.getMarksCount() << "\n";
}
void MergedBlockOutputStream::init()

View File

@ -48,7 +48,7 @@ public:
void writeText(WriteBuffer & out) const;
void readText(ReadBuffer & in);
/// Columns that we need to read except ones needed for expressions.
/// Extra columns that we need to read except ones needed for expressions.
Names additional_columns;
};