This commit is contained in:
Dmitry 2020-09-02 13:07:23 +03:00
parent 2180cdc400
commit 6f18cd772c
2 changed files with 3 additions and 2 deletions

View File

@ -380,7 +380,8 @@ class IColumn;
M(Bool, cast_keep_nullable, false, "CAST operator keep Nullable for result data type", 0) \ M(Bool, cast_keep_nullable, false, "CAST operator keep Nullable for result data type", 0) \
M(Bool, alter_partition_verbose_result, false, "Output information about affected parts. Currently works only for FREEZE and ATTACH commands.", 0) \ M(Bool, alter_partition_verbose_result, false, "Output information about affected parts. Currently works only for FREEZE and ATTACH commands.", 0) \
M(Bool, allow_experimental_database_materialize_mysql, false, "Allow to create database with Engine=MaterializeMySQL(...).", 0) \ \ M(Bool, allow_experimental_database_materialize_mysql, false, "Allow to create database with Engine=MaterializeMySQL(...).", 0) \ \
M(Bool, system_events_show_zero_values, false, "Include all metrics, even with zero values", 0) \ M(Bool, system_events_show_zero_values, false, "Include all metrics, even with zero values", 0) \ \
\
/** Obsolete settings that do nothing but left for compatibility reasons. Remove each one after half a year of obsolescence. */ \ /** Obsolete settings that do nothing but left for compatibility reasons. Remove each one after half a year of obsolescence. */ \
\ \
M(Bool, allow_experimental_low_cardinality_type, true, "Obsolete setting, does nothing. Will be removed after 2019-08-13", 0) \ M(Bool, allow_experimental_low_cardinality_type, true, "Obsolete setting, does nothing. Will be removed after 2019-08-13", 0) \

View File

@ -21,7 +21,7 @@ void StorageSystemEvents::fillData(MutableColumns & res_columns, const Context &
{ {
UInt64 value = ProfileEvents::global_counters[i]; UInt64 value = ProfileEvents::global_counters[i];
if (0 != value || context.getSettingsRef().system_events_show_zero_values)) if (0 != value || context.getSettingsRef().system_events_show_zero_values)
{ {
res_columns[0]->insert(ProfileEvents::getName(ProfileEvents::Event(i))); res_columns[0]->insert(ProfileEvents::getName(ProfileEvents::Event(i)));
res_columns[1]->insert(value); res_columns[1]->insert(value);