diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-12-09 10:11:16 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-12-09 10:33:35 +0300 |
commit | fa9347ea5cf4447897b525032be9a711cc3dc583 (patch) | |
tree | 4f3d4f493e4cfb43a3c8b5f7e279621c41e0e978 /contrib/clickhouse/src/Interpreters/executeQuery.h | |
parent | f82bfd2a08a51c4815a4cde64974f819ed4f7128 (diff) | |
download | ydb-fa9347ea5cf4447897b525032be9a711cc3dc583.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/clickhouse/src/Interpreters/executeQuery.h')
-rw-r--r-- | contrib/clickhouse/src/Interpreters/executeQuery.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/clickhouse/src/Interpreters/executeQuery.h b/contrib/clickhouse/src/Interpreters/executeQuery.h index c2c2e081b3..a31d4f2f08 100644 --- a/contrib/clickhouse/src/Interpreters/executeQuery.h +++ b/contrib/clickhouse/src/Interpreters/executeQuery.h @@ -15,6 +15,7 @@ namespace DB class IInterpreter; class ReadBuffer; class WriteBuffer; +class IOutputFormat; struct QueryStatusInfo; struct QueryResultDetails @@ -26,6 +27,7 @@ struct QueryResultDetails }; using SetResultDetailsFunc = std::function<void(const QueryResultDetails &)>; +using HandleExceptionInOutputFormatFunc = std::function<void(IOutputFormat & output_format)>; /// Parse and execute a query. void executeQuery( @@ -34,7 +36,8 @@ void executeQuery( bool allow_into_outfile, /// If true and the query contains INTO OUTFILE section, redirect output to that file. ContextMutablePtr context, /// DB, tables, data types, storage engines, functions, aggregate functions... SetResultDetailsFunc set_result_details, /// If a non-empty callback is passed, it will be called with the query id, the content-type, the format, and the timezone. - const std::optional<FormatSettings> & output_format_settings = std::nullopt /// Format settings for output format, will be calculated from the context if not set. + const std::optional<FormatSettings> & output_format_settings = std::nullopt, /// Format settings for output format, will be calculated from the context if not set. + HandleExceptionInOutputFormatFunc handle_exception_in_output_format = {} /// If a non-empty callback is passed, it will be called on exception with created output format. ); |