If they are defined, they can override table-level settings.
setProperties(metadata_, metadata_, attach);
    
    merging_params.check(metadata_);
    if (metadata_.sampling_key.definition_ast != nullptr)
    {
        
        checkSampleExpression(metadata_, attach || settings->compatibility_allow_sampling_expression_not_in_primary_key,
                              settings->check_sample_column_is_correct && !attach);
    }
    checkTTLExpressions(metadata_, metadata_);
    
    PathWithDisk version_file;
    
    for (const auto & disk : getDisks())
    {
        
        if (supportsReplication() && settings->allow_remote_fs_zero_copy_replication
            && disk->supportZeroCopyReplication() && metadata_.hasProjections())
        {
            throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Projections are not supported when zero-copy replication is enabled for table. "
                            "Currently disk '{}' supports zero copy replication", disk->getName());
        }
        if (disk->isBroken())
            continue;
        disk->createDirectories(relative_data_path);
        disk->createDirectories(fs::path(relative_data_path) / MergeTreeData::DETACHED_DIR_NAME);
        String current_version_file_path = fs::path(relative_data_path) / MergeTreeData::FORMAT_VERSION_FILE_NAME;
        if (disk->exists(current_version_file_path))
        {
            if (!version_file.first.empty())