Remove wrong bracket in the meta section

This commit is contained in:
Alexey Korepanov 2024-08-25 11:29:07 +02:00
parent 06f0267ed1
commit 58aab9b8c7
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ void JSONCompactWithProgressRowOutputFormat::writePrefix()
JSONUtils::writeCompactObjectStart(*ostr); JSONUtils::writeCompactObjectStart(*ostr);
JSONUtils::writeCompactMetadata(names, types, settings, *ostr); JSONUtils::writeCompactMetadata(names, types, settings, *ostr);
JSONUtils::writeCompactObjectEnd(*ostr); JSONUtils::writeCompactObjectEnd(*ostr);
writeCString("}\n", *ostr); writeCString("\n", *ostr);
} }
void JSONCompactWithProgressRowOutputFormat::writeField(const IColumn & column, const ISerialization & serialization, size_t row_num) void JSONCompactWithProgressRowOutputFormat::writeField(const IColumn & column, const ISerialization & serialization, size_t row_num)

View File

@ -1,11 +1,11 @@
1 1
{"meta": [{"name":"value", "type":"UInt8"}, {"name":"name", "type":"String"}]}} {"meta": [{"name":"value", "type":"UInt8"}, {"name":"name", "type":"String"}]}
{"data":[1, "a"]} {"data":[1, "a"]}
{"data":[2, "b"]} {"data":[2, "b"]}
{"data":[3, "c"]} {"data":[3, "c"]}
{"statistics": {"rows":3, "elapsed":ELAPSED, "rows_read":3, "bytes_read":33}} {"statistics": {"rows":3, "elapsed":ELAPSED, "rows_read":3, "bytes_read":33}}
2 2
{"meta": [{"name":"name", "type":"String"}, {"name":"c", "type":"UInt64"}]}} {"meta": [{"name":"name", "type":"String"}, {"name":"c", "type":"UInt64"}]}
{"data":["a", "1"]} {"data":["a", "1"]}
{"data":["b", "1"]} {"data":["b", "1"]}
{"data":["c", "1"]} {"data":["c", "1"]}