mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Do not throw an error in client
This commit is contained in:
parent
9b001e5092
commit
01042f3aaa
@ -106,7 +106,6 @@ namespace ErrorCodes
|
|||||||
extern const int CANNOT_OPEN_FILE;
|
extern const int CANNOT_OPEN_FILE;
|
||||||
extern const int FILE_ALREADY_EXISTS;
|
extern const int FILE_ALREADY_EXISTS;
|
||||||
extern const int USER_SESSION_LIMIT_EXCEEDED;
|
extern const int USER_SESSION_LIMIT_EXCEEDED;
|
||||||
extern const int FUNCTION_NOT_ALLOWED;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -959,11 +958,6 @@ void ClientBase::processOrdinaryQuery(const String & query_to_execute, ASTPtr pa
|
|||||||
|
|
||||||
if (has_partial_result_setting)
|
if (has_partial_result_setting)
|
||||||
{
|
{
|
||||||
if (!settings.allow_experimental_partial_result)
|
|
||||||
throw Exception(ErrorCodes::FUNCTION_NOT_ALLOWED,
|
|
||||||
"Partial results are not allowed by default, it's an experimental feature. "
|
|
||||||
"Setting 'allow_experimental_partial_result' must be enabled to use 'partial_result_update_duration_ms'");
|
|
||||||
|
|
||||||
partial_result_mode = PartialResultMode::NotInit;
|
partial_result_mode = PartialResultMode::NotInit;
|
||||||
if (is_interactive)
|
if (is_interactive)
|
||||||
std::cout << "Partial result:" << std::endl;
|
std::cout << "Partial result:" << std::endl;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
SET partial_result_update_duration_ms = 10;
|
SET partial_result_update_duration_ms = 10;
|
||||||
|
|
||||||
SELECT sum(number) FROM numbers_mt(100_000) SETTINGS max_threads = 1; -- { clientError FUNCTION_NOT_ALLOWED }
|
SELECT sum(number) FROM numbers_mt(100_000) SETTINGS max_threads = 1; -- { serverError FUNCTION_NOT_ALLOWED }
|
||||||
|
Loading…
Reference in New Issue
Block a user