Fix JSON totals.

This commit is contained in:
Nikolai Kochetov 2019-04-12 18:43:09 +03:00
parent 4311904af4
commit 3155c6ff90

View File

@ -79,7 +79,7 @@ void JSONRowOutputFormat::writeField(const IColumn & column, const IDataType & t
void JSONRowOutputFormat::writeTotalsField(const IColumn & column, const IDataType & type, size_t row_num)
{
writeCString("\t\t", *ostr);
writeJSONString(fields[field_number].name, *ostr, settings);
writeString(fields[field_number].name, *ostr);
writeCString(": ", *ostr);
type.serializeAsTextJSON(column, row_num, *ostr, settings);
++field_number;