aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Formats/JSONUtils.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/JSONUtils.cpp
parentf82bfd2a08a51c4815a4cde64974f819ed4f7128 (diff)
downloadydb-fa9347ea5cf4447897b525032be9a711cc3dc583.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/clickhouse/src/Formats/JSONUtils.cpp')
-rw-r--r--contrib/clickhouse/src/Formats/JSONUtils.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/clickhouse/src/Formats/JSONUtils.cpp b/contrib/clickhouse/src/Formats/JSONUtils.cpp
index 6fbda86915..240f1dba33 100644
--- a/contrib/clickhouse/src/Formats/JSONUtils.cpp
+++ b/contrib/clickhouse/src/Formats/JSONUtils.cpp
@@ -531,6 +531,12 @@ namespace JSONUtils
}
}
+ void writeException(const String & exception_message, WriteBuffer & out, const FormatSettings & settings, size_t indent)
+ {
+ writeTitle("exception", out, indent, " ");
+ writeJSONString(exception_message, out, settings);
+ }
+
Strings makeNamesValidJSONStrings(const Strings & names, const FormatSettings & settings, bool validate_utf8)
{
Strings result;