mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Change description for setting: throw_if_deduplication_in_dependent_materialized_views_enabled_with_async_insert
This commit is contained in:
parent
9aaf806021
commit
09cb2d822a
@ -147,7 +147,7 @@ static std::initializer_list<std::pair<ClickHouseVersion, SettingsChangesHistory
|
||||
{"default_table_engine", "None", "MergeTree", "Set default table engine to MergeTree for better usability"},
|
||||
{"input_format_json_use_string_type_for_ambiguous_paths_in_named_tuples_inference_from_objects", false, false, "Allow to use String type for ambiguous paths during named tuple inference from JSON objects"},
|
||||
{"traverse_shadow_remote_data_paths", false, false, "Traverse shadow directory when query system.remote_data_paths."},
|
||||
{"throw_if_deduplication_in_dependent_materialized_views_enabled_with_async_insert", false, true, "Deduplication is dependent materialized view cannot work together with async inserts."},
|
||||
{"throw_if_deduplication_in_dependent_materialized_views_enabled_with_async_insert", false, true, "Deduplication in dependent materialized view cannot work together with async inserts."},
|
||||
{"parallel_replicas_allow_in_with_subquery", false, true, "If true, subquery for IN will be executed on every follower replica"},
|
||||
{"log_processors_profiles", false, true, "Enable by default"},
|
||||
{"function_locate_has_mysql_compatible_argument_order", false, true, "Increase compatibility with MySQL's locate function."},
|
||||
|
@ -1048,14 +1048,14 @@ static std::tuple<ASTPtr, BlockIO> executeQueryImpl(
|
||||
/// In case when the client had to retry some mini-INSERTs then they will be properly deduplicated
|
||||
/// by the source tables. This functionality is controlled by a setting `async_insert_deduplicate`.
|
||||
/// But then they will be glued together into a block and pushed through a chain of Materialized Views if any.
|
||||
/// The process of forming such blocks is not deteministic so each time we retry mini-INSERTs the resulting
|
||||
/// The process of forming such blocks is not deterministic so each time we retry mini-INSERTs the resulting
|
||||
/// block may be concatenated differently.
|
||||
/// That's why deduplication in dependent Materialized Views doesn't make sense in presence of async INSERTs.
|
||||
if (settings.throw_if_deduplication_in_dependent_materialized_views_enabled_with_async_insert &&
|
||||
settings.deduplicate_blocks_in_dependent_materialized_views)
|
||||
throw Exception(ErrorCodes::SUPPORT_IS_DISABLED,
|
||||
"Deduplication is dependent materialized view cannot work together with async inserts. "\
|
||||
"Please disable eiher `deduplicate_blocks_in_dependent_materialized_views` or `async_insert` setting.");
|
||||
"Deduplication in dependent materialized view cannot work together with async inserts. "\
|
||||
"Please disable either `deduplicate_blocks_in_dependent_materialized_views` or `async_insert` setting.");
|
||||
|
||||
quota = context->getQuota();
|
||||
if (quota)
|
||||
|
@ -961,8 +961,8 @@ void TCPHandler::processInsertQuery()
|
||||
if (settings.throw_if_deduplication_in_dependent_materialized_views_enabled_with_async_insert &&
|
||||
settings.deduplicate_blocks_in_dependent_materialized_views)
|
||||
throw Exception(ErrorCodes::SUPPORT_IS_DISABLED,
|
||||
"Deduplication is dependent materialized view cannot work together with async inserts. "\
|
||||
"Please disable eiher `deduplicate_blocks_in_dependent_materialized_views` or `async_insert` setting.");
|
||||
"Deduplication in dependent materialized view cannot work together with async inserts. "\
|
||||
"Please disable either `deduplicate_blocks_in_dependent_materialized_views` or `async_insert` setting.");
|
||||
|
||||
auto result = processAsyncInsertQuery(*insert_queue);
|
||||
if (result.status == AsynchronousInsertQueue::PushResult::OK)
|
||||
|
Loading…
Reference in New Issue
Block a user