mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Merge pull request #17739 from spongedu/check_systemlog_table_engine_define
add check for systemlog tables' engine definition
This commit is contained in:
commit
07f914769e
@ -74,6 +74,10 @@ std::shared_ptr<TSystemLog> createSystemLog(
|
|||||||
engine += " TTL " + ttl;
|
engine += " TTL " + ttl;
|
||||||
engine += " ORDER BY (event_date, event_time)";
|
engine += " ORDER BY (event_date, event_time)";
|
||||||
}
|
}
|
||||||
|
// Validate engine definition grammatically to prevent some configuration errors
|
||||||
|
ParserStorage storage_parser;
|
||||||
|
parseQuery(storage_parser, engine.data(), engine.data() + engine.size(),
|
||||||
|
"Storage to create table for " + config_prefix, 0, DBMS_DEFAULT_MAX_PARSER_DEPTH);
|
||||||
|
|
||||||
size_t flush_interval_milliseconds = config.getUInt64(config_prefix + ".flush_interval_milliseconds",
|
size_t flush_interval_milliseconds = config.getUInt64(config_prefix + ".flush_interval_milliseconds",
|
||||||
DEFAULT_SYSTEM_LOG_FLUSH_INTERVAL_MILLISECONDS);
|
DEFAULT_SYSTEM_LOG_FLUSH_INTERVAL_MILLISECONDS);
|
||||||
|
Loading…
Reference in New Issue
Block a user