mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
polymorphic parts (development) cleanup
This commit is contained in:
parent
6f673407ff
commit
258e8d61fb
@ -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";
|
||||
|
@ -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;
|
||||
|
@ -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()
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user