mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Disallow using DEPRECATED settings
This commit is contained in:
parent
3e6b62f420
commit
f3e64fd69c
@ -207,12 +207,10 @@ namespace MergeTreeSetting
|
||||
extern const MergeTreeSettingsUInt64 max_projections;
|
||||
extern const MergeTreeSettingsUInt64 max_suspicious_broken_parts_bytes;
|
||||
extern const MergeTreeSettingsUInt64 max_suspicious_broken_parts;
|
||||
extern const MergeTreeSettingsUInt64 min_bytes_for_compact_part;
|
||||
extern const MergeTreeSettingsUInt64 min_bytes_for_wide_part;
|
||||
extern const MergeTreeSettingsUInt64 min_bytes_to_rebalance_partition_over_jbod;
|
||||
extern const MergeTreeSettingsUInt64 min_delay_to_insert_ms;
|
||||
extern const MergeTreeSettingsUInt64 min_delay_to_mutate_ms;
|
||||
extern const MergeTreeSettingsUInt64 min_rows_for_compact_part;
|
||||
extern const MergeTreeSettingsUInt64 min_rows_for_wide_part;
|
||||
extern const MergeTreeSettingsUInt64 number_of_mutations_to_delay;
|
||||
extern const MergeTreeSettingsUInt64 number_of_mutations_to_throw;
|
||||
@ -8360,8 +8358,7 @@ bool MergeTreeData::canUsePolymorphicParts(const MergeTreeSettings & settings, S
|
||||
{
|
||||
if (!canUseAdaptiveGranularity())
|
||||
{
|
||||
if ((settings[MergeTreeSetting::min_rows_for_wide_part] != 0 || settings[MergeTreeSetting::min_bytes_for_wide_part] != 0
|
||||
|| settings[MergeTreeSetting::min_rows_for_compact_part] != 0 || settings[MergeTreeSetting::min_bytes_for_compact_part] != 0))
|
||||
if (settings[MergeTreeSetting::min_rows_for_wide_part] != 0 || settings[MergeTreeSetting::min_bytes_for_wide_part] != 0)
|
||||
{
|
||||
out_reason = fmt::format(
|
||||
"Table can't create parts with adaptive granularity, but settings"
|
||||
|
@ -86,11 +86,10 @@ done
|
||||
|
||||
# Find missing declarations (obsolete settings being used)
|
||||
# Note that SettingsDeclaration are first in the file
|
||||
# Disabled for now pending fixing the code
|
||||
#awk '{print $1 " " $3}' "${SETTINGS_FILE}" | awk '{if (!seen[$1]++) print $0}' | grep -v SettingsDeclaration | while read -r setting;
|
||||
#do
|
||||
# echo "Could not find setting (maybe obsolete?) $setting"
|
||||
#done
|
||||
awk '{print $1 " " $3}' "${SETTINGS_FILE}" | awk '{if (!seen[$1]++) print $0}' | grep -v SettingsDeclaration | while read -r setting;
|
||||
do
|
||||
echo "Could not find setting (maybe obsolete?) $setting"
|
||||
done
|
||||
|
||||
# Look for settings declared with multiple types
|
||||
# This works based on the fact that the if the setting declaration and usage have different types then the pair
|
||||
|
Loading…
Reference in New Issue
Block a user