aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Formats/FormatFactory.cpp
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-12-09 10:11:16 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-12-09 10:33:35 +0300
commitfa9347ea5cf4447897b525032be9a711cc3dc583 (patch)
tree4f3d4f493e4cfb43a3c8b5f7e279621c41e0e978 /contrib/clickhouse/src/Formats/FormatFactory.cpp
parentf82bfd2a08a51c4815a4cde64974f819ed4f7128 (diff)
downloadydb-fa9347ea5cf4447897b525032be9a711cc3dc583.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/clickhouse/src/Formats/FormatFactory.cpp')
-rw-r--r--contrib/clickhouse/src/Formats/FormatFactory.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/clickhouse/src/Formats/FormatFactory.cpp b/contrib/clickhouse/src/Formats/FormatFactory.cpp
index c349ebd94e..d7348527b9 100644
--- a/contrib/clickhouse/src/Formats/FormatFactory.cpp
+++ b/contrib/clickhouse/src/Formats/FormatFactory.cpp
@@ -1,7 +1,6 @@
#include <Formats/FormatFactory.h>
#include <algorithm>
-#include <Core/Settings.h>
#include <Formats/FormatSettings.h>
#include <Interpreters/Context.h>
#include <Interpreters/ProcessList.h>
@@ -229,6 +228,12 @@ FormatSettings getFormatSettings(ContextPtr context, const Settings & settings)
context->getRemoteHostFilter().checkURL(avro_schema_registry_url);
}
+ if (context->getClientInfo().interface == ClientInfo::Interface::HTTP && context->getSettingsRef().http_write_exception_in_output_format.value)
+ {
+ format_settings.json.valid_output_on_exception = true;
+ format_settings.xml.valid_output_on_exception = true;
+ }
+
return format_settings;
}