ClickHouse/src/Storages/MergeTree/checkDataPart.h
2023-06-22 12:25:45 +00:00

19 lines
414 B
C++

#pragma once
#include <Storages/MergeTree/MergeTreeData.h>
namespace DB
{
/// Calculates checksums and compares them with checksums.txt.
IMergeTreeDataPart::Checksums checkDataPart(
MergeTreeData::DataPartPtr data_part,
bool require_checksums,
std::function<bool()> is_cancelled = []{ return false; });
bool isNotEnoughMemoryErrorCode(int code);
bool isRetryableException(const Exception & e);
}