mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Disable suggestions
This commit is contained in:
parent
d30137b1b6
commit
805924d9f4
@ -586,7 +586,8 @@ void LocalServer::processConfig()
|
||||
|
||||
print_stack_trace = config().getBool("stacktrace", false);
|
||||
const std::string clickhouse_dialect{"clickhouse"};
|
||||
load_suggestions = false;
|
||||
load_suggestions = (is_interactive || delayed_interactive) && !config().getBool("disable_suggestion", false)
|
||||
&& config().getString("dialect", clickhouse_dialect) == clickhouse_dialect;
|
||||
|
||||
auto logging = (config().has("logger.console")
|
||||
|| config().has("logger.level")
|
||||
|
@ -53,4 +53,9 @@ expect eof
|
||||
EOF
|
||||
}
|
||||
|
||||
run "$CLICKHOUSE_LOCAL"
|
||||
run "$CLICKHOUSE_LOCAL --disable_suggestion"
|
||||
# Suggestions are off because the suggestion feature initializes itself by reading all available function
|
||||
# names from "system.functions". Getting the value for field "is_obsolete" occasionally throws (e.g. for
|
||||
# certain dictionary functions when dictionaries are not set up yet). Exceptions are properly handled, but
|
||||
# they exist for a short time. This, in combination with CLICKHOUSE_TERMINATE_ON_ANY_EXCEPTION, terminates
|
||||
# clickhouse-local and clickhouse-client when run in interactive mode *with* suggestions.
|
||||
|
Loading…
Reference in New Issue
Block a user