aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Processors/Formats/Impl/XMLRowOutputFormat.h
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/Processors/Formats/Impl/XMLRowOutputFormat.h
parentf82bfd2a08a51c4815a4cde64974f819ed4f7128 (diff)
downloadydb-fa9347ea5cf4447897b525032be9a711cc3dc583.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/clickhouse/src/Processors/Formats/Impl/XMLRowOutputFormat.h')
-rw-r--r--contrib/clickhouse/src/Processors/Formats/Impl/XMLRowOutputFormat.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/clickhouse/src/Processors/Formats/Impl/XMLRowOutputFormat.h b/contrib/clickhouse/src/Processors/Formats/Impl/XMLRowOutputFormat.h
index e25e712910..daf03539d0 100644
--- a/contrib/clickhouse/src/Processors/Formats/Impl/XMLRowOutputFormat.h
+++ b/contrib/clickhouse/src/Processors/Formats/Impl/XMLRowOutputFormat.h
@@ -6,6 +6,7 @@
#include <Common/Stopwatch.h>
#include <Formats/FormatSettings.h>
#include <Processors/Formats/OutputFormatWithUTF8ValidationAdaptor.h>
+#include <Processors/Formats/RowOutputFormatWithExceptionHandlerAdaptor.h>
namespace DB
@@ -13,7 +14,7 @@ namespace DB
/** A stream for outputting data in XML format.
*/
-class XMLRowOutputFormat final : public RowOutputFormatWithUTF8ValidationAdaptor
+class XMLRowOutputFormat final : public RowOutputFormatWithExceptionHandlerAdaptor<RowOutputFormatWithUTF8ValidationAdaptor, bool>
{
public:
XMLRowOutputFormat(WriteBuffer & out_, const Block & header_, const FormatSettings & format_settings_);
@@ -56,6 +57,7 @@ private:
void writeExtremesElement(const char * title, const Columns & columns, size_t row_num);
void writeRowsBeforeLimitAtLeast();
void writeStatistics();
+ void writeException();
size_t field_number = 0;
size_t row_count = 0;
@@ -63,6 +65,7 @@ private:
Names field_tag_names;
const FormatSettings format_settings;
+ WriteBuffer * ostr;
};
}