Do not throw an error in client

This commit is contained in:
vdimir 2023-09-12 11:33:11 +00:00
parent 9b001e5092
commit 01042f3aaa
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862
2 changed files with 1 additions and 7 deletions

View File

@ -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;

View File

@ -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 }