Update DistributedBlockOutputStream.cpp

This commit is contained in:
alexey-milovidov 2021-01-16 13:22:25 +03:00 committed by GitHub
parent 9829c09720
commit a5a19de878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -352,6 +352,7 @@ DistributedBlockOutputStream::runWritingJob(DistributedBlockOutputStream::JobRep
/// Forward user settings /// Forward user settings
job.local_context = std::make_unique<Context>(context); job.local_context = std::make_unique<Context>(context);
/// InterpreterInsertQuery is modifying the AST, but the same AST is also used to insert to remote shards.
auto copy_query_ast = query_ast->clone(); auto copy_query_ast = query_ast->clone();
InterpreterInsertQuery interp(copy_query_ast, *job.local_context); InterpreterInsertQuery interp(copy_query_ast, *job.local_context);