<<" have different type of column "<<dst_col.name<<". Block of data is discarded.");
return;
}
columns_intersection.push_back(dst_col.name);
}
}
if(block_to_write)
if(columns_intersection.empty())
{
autodst=table->write(nullptr);
dst->writePrefix();
dst->write(block_to_write);
dst->writeSuffix();
LOG_ERROR(log,"Destination table "<<destination_database<<"."<<destination_table<<" have no common columns with block in buffer. Block of data is discarded.");
return;
}
if(columns_intersection.size()!=block.columns())
LOG_WARNING(log,"Not all columns from block in buffer exist in destination table "
<<destination_database<<"."<<destination_table<<". Some columns are discarded.");