#pragma once #include namespace DB { /** Completely checks the part data * - Calculates checksums and compares them with checksums.txt. * - For arrays and strings, checks the correspondence of the size and amount of data. * - Checks the correctness of marks. * Throws an exception if the part is corrupted or if the check fails (TODO: you can try to separate these cases). */ MergeTreeData::DataPart::Checksums checkDataPart( const String & path, size_t index_granularity, bool require_checksums, const DataTypes & primary_key_data_types, /// Check the primary key. If it is not necessary, pass an empty array. std::function is_cancelled = []{ return false; }); }