Merge pull request #36820 from azat/fix-asynchronous_metric_log

Avoid recreation of system.asynchronous_metric_log (due to difference in codec)
This commit is contained in:
Alexey Milovidov 2022-05-01 13:42:17 +03:00 committed by GitHub
commit 91d1ac913c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,9 +37,9 @@ struct AsynchronousMetricLogElement
/// Otherwise the list will be constructed from LogElement::getNamesAndTypes and LogElement::getNamesAndAliases.
static const char * getCustomColumnList()
{
return "event_date Date CODEC(Delta(2), ZSTD), "
"event_time DateTime CODEC(Delta(4), ZSTD), "
"metric LowCardinality(String) CODEC(ZSTD), "
return "event_date Date CODEC(Delta(2), ZSTD(1)), "
"event_time DateTime CODEC(Delta(4), ZSTD(1)), "
"metric LowCardinality(String) CODEC(ZSTD(1)), "
"value Float64 CODEC(Gorilla, ZSTD(3))";
}
};