From cb89bcae254d901a8a0c51f48957df8876cef197 Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Sun, 23 Feb 2020 04:30:53 +0300 Subject: [PATCH] Update PushingToViewsBlockOutputStream.cpp --- dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp b/dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp index 1938362ed12..b9a66f4899d 100644 --- a/dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp +++ b/dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp @@ -30,7 +30,7 @@ PushingToViewsBlockOutputStream::PushingToViewsBlockOutputStream( /// If the "root" table deduplactes blocks, there are no need to make deduplication for children /// Moreover, deduplication for AggregatingMergeTree children could produce false positives due to low size of inserting blocks bool disable_deduplication_for_children = false; - if (!context.getSettingsRef().force_deduplicate_childrens) + if (!context.getSettingsRef().deduplicate_blocks_in_dependent_materialized_views) disable_deduplication_for_children = !no_destination && storage->supportsDeduplication(); auto table_id = storage->getStorageID(); @@ -132,7 +132,7 @@ void PushingToViewsBlockOutputStream::write(const Block & block) } /// Don't process materialized views if this block is duplicate - if (!context.getSettingsRef().force_deduplicate_childrens && replicated_output && replicated_output->lastBlockIsDuplicate()) + if (!context.getSettingsRef().deduplicate_blocks_in_dependent_materialized_views && replicated_output && replicated_output->lastBlockIsDuplicate()) return; // Insert data into materialized views only after successful insert into main table