Create a deep copy of Settings to ensure they don't change

This commit is contained in:
Pablo Marcos 2024-09-05 14:53:14 +00:00
parent 18a6b970eb
commit 0996ed5246

View File

@ -347,7 +347,7 @@ DistributedSink::runWritingJob(JobReplica & job, const Block & current_block, si
}
const Block & shard_block = (num_shards > 1) ? job.current_shard_block : current_block;
const Settings & settings = context->getSettingsRef();
const Settings settings = context->getSettingsCopy();
size_t rows = shard_block.rows();