mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
add new config to skip warnings
This commit is contained in:
parent
ffb0c832bc
commit
3b61682265
@ -610,7 +610,9 @@ private:
|
|||||||
/// Load suggestion data from the server.
|
/// Load suggestion data from the server.
|
||||||
suggest->load(connection_parameters, config().getInt("suggestion_limit"));
|
suggest->load(connection_parameters, config().getInt("suggestion_limit"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Load Warnings at the beginning of connection
|
/// Load Warnings at the beginning of connection
|
||||||
|
if (!config().has("no-warnings"))
|
||||||
{
|
{
|
||||||
std::vector<String> messages;
|
std::vector<String> messages;
|
||||||
try
|
try
|
||||||
@ -2594,6 +2596,7 @@ public:
|
|||||||
("opentelemetry-traceparent", po::value<std::string>(), "OpenTelemetry traceparent header as described by W3C Trace Context recommendation")
|
("opentelemetry-traceparent", po::value<std::string>(), "OpenTelemetry traceparent header as described by W3C Trace Context recommendation")
|
||||||
("opentelemetry-tracestate", po::value<std::string>(), "OpenTelemetry tracestate header as described by W3C Trace Context recommendation")
|
("opentelemetry-tracestate", po::value<std::string>(), "OpenTelemetry tracestate header as described by W3C Trace Context recommendation")
|
||||||
("history_file", po::value<std::string>(), "path to history file")
|
("history_file", po::value<std::string>(), "path to history file")
|
||||||
|
("no-warnings", "disable warnings when client connects to server")
|
||||||
;
|
;
|
||||||
|
|
||||||
Settings cmd_settings;
|
Settings cmd_settings;
|
||||||
@ -2754,6 +2757,8 @@ public:
|
|||||||
config().setBool("highlight", options["highlight"].as<bool>());
|
config().setBool("highlight", options["highlight"].as<bool>());
|
||||||
if (options.count("history_file"))
|
if (options.count("history_file"))
|
||||||
config().setString("history_file", options["history_file"].as<std::string>());
|
config().setString("history_file", options["history_file"].as<std::string>());
|
||||||
|
if (options.count("no-warnings"))
|
||||||
|
config().setBool("no-warnings", true);
|
||||||
|
|
||||||
if ((query_fuzzer_runs = options["query-fuzzer-runs"].as<int>()))
|
if ((query_fuzzer_runs = options["query-fuzzer-runs"].as<int>()))
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ log_user 1
|
|||||||
set timeout 5
|
set timeout 5
|
||||||
match_max 100000
|
match_max 100000
|
||||||
|
|
||||||
spawn bash -c "$env(CLICKHOUSE_CLIENT_BINARY) $env(CLICKHOUSE_CLIENT_OPT)"
|
spawn bash -c "$env(CLICKHOUSE_CLIENT_BINARY) --no-warnings $env(CLICKHOUSE_CLIENT_OPT)"
|
||||||
expect ":) "
|
expect ":) "
|
||||||
send -- "\4"
|
send -- "\4"
|
||||||
expect eof
|
expect eof
|
||||||
|
Loading…
Reference in New Issue
Block a user