Update programs/copier/ClusterCopier.cpp

Co-authored-by: Azat Khuzhin <a3at.mail@gmail.com>
This commit is contained in:
Kruglov Pavel 2023-04-19 13:30:46 +02:00 committed by GitHub
parent 223aa6ab18
commit 58b973fa91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1766,7 +1766,7 @@ String ClusterCopier::getRemoteCreateTable(const DatabaseAndTableName & table, C
QueryPipelineBuilder builder;
builder.init(Pipe(std::make_shared<RemoteSource>(
std::make_shared<RemoteQueryExecutor>(connection, query, InterpreterShowCreateQuery::getSampleBlock(), remote_context), false, false, false)));
std::make_shared<RemoteQueryExecutor>(connection, query, InterpreterShowCreateQuery::getSampleBlock(), remote_context), false, false, /* async_query_sending= */ false)));
Block block = getBlockWithAllStreamData(std::move(builder));
return typeid_cast<const ColumnString &>(*block.safeGetByPosition(0).column).getDataAt(0).toString();
}