If they are defined, they can override table-level settings.
auto write_buffer = disk->writeFile(fs::path(temp_part_dir) / filename);
                copyData(*read_buffer, *write_buffer);
                reservation->update(reservation->getSize() - backup_entry->getSize());
            }
            auto single_disk_volume = std::make_shared<SingleDiskVolume>(disk->getName(), disk, 0);
            auto part = storage->createPart(part_name, part_info, single_disk_volume, relative_temp_part_dir);
            /
            disk->removeFileIfExists(fs::path(temp_part_dir) / IMergeTreeDataPart::TXN_VERSION_METADATA_FILE_NAME);
            part->version.setCreationTID(Tx::PrehistoricTID, nullptr);
            part->loadColumnsChecksumsIndexes(false, true);
            storage->renameTempPartAndAdd(part, NO_TRANSACTION_RAW, increment);
            return {};
        }
    private:
        std::shared_ptr<MergeTreeData> storage;
        BackupPtr backup;
        String data_path_in_backup;
        String part_name;
        MergeTreePartInfo part_info;
        SimpleIncrement * increment;
    };
};
RestoreTaskPtr MergeTreeData::restoreDataParts(const std::unordered_set<String> & partition_ids,
                                               const BackupPtr & backup, const String & data_path_in_backup,
                                               SimpleIncrement * increment)
{
    return std::make_unique<MergeTreeDataRestoreTask>(
        std::static_pointer_cast<MergeTreeData>(shared_from_this()), backup, data_path_in_backup, partition_ids, increment);
}
String MergeTreeData::getPartitionIDFromQuery(const ASTPtr & ast, ContextPtr local_context) const