MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / finalizeImpl

Method finalizeImpl

src/Processors/Formats/Impl/JSONRowOutputFormat.cpp:117–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void JSONRowOutputFormat::finalizeImpl()
118{
119 JSONUtils::writeAdditionalInfo(
120 row_count,
121 statistics.rows_before_limit,
122 statistics.applied_limit,
123 statistics.rows_before_aggregation,
124 statistics.applied_aggregation,
125 statistics.watch,
126 statistics.progress,
127 settings.write_statistics && exception_message.empty(),
128 *ostr);
129
130 if (!exception_message.empty())
131 {
132 writeCString(",\n\n", *ostr);
133 JSONUtils::writeException(exception_message, *ostr, settings, 1);
134 }
135
136 JSONUtils::writeObjectEnd(*ostr);
137 writeChar('\n', *ostr);
138 ostr->next();
139}
140
141void JSONRowOutputFormat::resetFormatterImpl()
142{

Callers

nothing calls this directly

Calls 6

writeAdditionalInfoFunction · 0.85
writeObjectEndFunction · 0.85
writeCharFunction · 0.85
writeExceptionFunction · 0.50
emptyMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected