Disable syntax suggestions in clickhouse-local

This commit is contained in:
Robert Schulze 2023-09-25 16:26:57 +00:00
parent 5233adecb0
commit d30137b1b6
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -586,8 +586,7 @@ void LocalServer::processConfig()
print_stack_trace = config().getBool("stacktrace", false);
const std::string clickhouse_dialect{"clickhouse"};
load_suggestions = (is_interactive || delayed_interactive) && !config().getBool("disable_suggestion", false)
&& config().getString("dialect", clickhouse_dialect) == clickhouse_dialect;
load_suggestions = false;
auto logging = (config().has("logger.console")
|| config().has("logger.level")