Compare commits

...

2 Commits

Author SHA1 Message Date
Raúl Marín
abe81c1a20
Merge f3e64fd69c into 59fe7e1951 2024-11-20 13:12:56 +01:00
Raúl Marín
f3e64fd69c Disallow using DEPRECATED settings 2024-10-28 18:35:02 +01:00
2 changed files with 5 additions and 9 deletions

View File

@ -210,12 +210,10 @@ namespace MergeTreeSetting
extern const MergeTreeSettingsUInt64 max_projections; extern const MergeTreeSettingsUInt64 max_projections;
extern const MergeTreeSettingsUInt64 max_suspicious_broken_parts_bytes; extern const MergeTreeSettingsUInt64 max_suspicious_broken_parts_bytes;
extern const MergeTreeSettingsUInt64 max_suspicious_broken_parts; 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_for_wide_part;
extern const MergeTreeSettingsUInt64 min_bytes_to_rebalance_partition_over_jbod; extern const MergeTreeSettingsUInt64 min_bytes_to_rebalance_partition_over_jbod;
extern const MergeTreeSettingsUInt64 min_delay_to_insert_ms; extern const MergeTreeSettingsUInt64 min_delay_to_insert_ms;
extern const MergeTreeSettingsUInt64 min_delay_to_mutate_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 min_rows_for_wide_part;
extern const MergeTreeSettingsUInt64 number_of_mutations_to_delay; extern const MergeTreeSettingsUInt64 number_of_mutations_to_delay;
extern const MergeTreeSettingsUInt64 number_of_mutations_to_throw; extern const MergeTreeSettingsUInt64 number_of_mutations_to_throw;
@ -8445,8 +8443,7 @@ bool MergeTreeData::canUsePolymorphicParts(const MergeTreeSettings & settings, S
{ {
if (!canUseAdaptiveGranularity()) if (!canUseAdaptiveGranularity())
{ {
if ((settings[MergeTreeSetting::min_rows_for_wide_part] != 0 || settings[MergeTreeSetting::min_bytes_for_wide_part] != 0 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))
{ {
out_reason = fmt::format( out_reason = fmt::format(
"Table can't create parts with adaptive granularity, but settings" "Table can't create parts with adaptive granularity, but settings"

View File

@ -86,11 +86,10 @@ done
# Find missing declarations (obsolete settings being used) # Find missing declarations (obsolete settings being used)
# Note that SettingsDeclaration are first in the file # 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;
#awk '{print $1 " " $3}' "${SETTINGS_FILE}" | awk '{if (!seen[$1]++) print $0}' | grep -v SettingsDeclaration | while read -r setting; do
#do echo "Could not find setting (maybe obsolete?) $setting"
# echo "Could not find setting (maybe obsolete?) $setting" done
#done
# Look for settings declared with multiple types # 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 # This works based on the fact that the if the setting declaration and usage have different types then the pair