Fix disable_suggestion argument for clickhouse-local

This commit is contained in:
kssenii 2022-02-12 20:26:01 +01:00
parent fecf7f3d08
commit 39049251b7

View File

@ -518,22 +518,17 @@ void LocalServer::processConfig()
if (config().has("multiquery"))
is_multiquery = true;
load_suggestions = true;
}
else
{
if (delayed_interactive)
{
load_suggestions = true;
}
need_render_progress = config().getBool("progress", false);
echo_queries = config().hasOption("echo") || config().hasOption("verbose");
ignore_error = config().getBool("ignore-error", false);
is_multiquery = true;
}
print_stack_trace = config().getBool("stacktrace", false);
load_suggestions = (is_interactive || delayed_interactive) && !config().getBool("disable_suggestion", false);
auto logging = (config().has("logger.console")
|| config().has("logger.level")