fix polymorphic parts fetching

This commit is contained in:
CurtizJ 2020-02-12 02:29:34 +03:00
parent b26a8b5622
commit 59c4f53fec
2 changed files with 3 additions and 4 deletions

View File

@ -259,9 +259,6 @@ MergeTreeData::MutableDataPartPtr Fetcher::downloadPart(
part_file.createDirectory();
MergeTreeData::MutableDataPartPtr new_data_part = data.createPart(part_name, reservation->getDisk(),relative_part_path);
new_data_part->is_temp = true;
MergeTreeData::DataPart::Checksums checksums;
for (size_t i = 0; i < files; ++i)
{
@ -305,6 +302,8 @@ MergeTreeData::MutableDataPartPtr Fetcher::downloadPart(
assertEOF(in);
MergeTreeData::MutableDataPartPtr new_data_part = data.createPart(part_name, reservation->getDisk(), relative_part_path);
new_data_part->is_temp = true;
new_data_part->modification_time = time(nullptr);
new_data_part->loadColumnsChecksumsIndexes(true, false);
new_data_part->checksums.checkEqual(checksums, false);

View File

@ -41,7 +41,7 @@ public:
String toString() const;
private:
Value value;
Value value;
};
}