Add load_metadata_threads to describe filesystem cache

This commit is contained in:
Jordi Villar 2023-10-20 11:25:59 +02:00
parent 3ee4bee580
commit 839c05e3b8

View File

@ -27,6 +27,7 @@ static Block getSampleBlock()
ColumnWithTypeAndName{std::make_shared<DataTypeString>(), "path"},
ColumnWithTypeAndName{std::make_shared<DataTypeNumber<UInt64>>(), "background_download_threads"},
ColumnWithTypeAndName{std::make_shared<DataTypeNumber<UInt64>>(), "enable_bypass_cache_with_threshold"},
ColumnWithTypeAndName{std::make_shared<DataTypeNumber<UInt64>>(), "load_metadata_threads"},
};
return Block(columns);
}
@ -55,6 +56,7 @@ BlockIO InterpreterDescribeCacheQuery::execute()
res_columns[i++]->insert(cache->getBasePath());
res_columns[i++]->insert(settings.background_download_threads);
res_columns[i++]->insert(settings.enable_bypass_cache_with_threshold);
res_columns[i++]->insert(settings.load_metadata_threads);
BlockIO res;
size_t num_rows = res_columns[0]->size();