better test + fix writePrefix in JSONCompact

This commit is contained in:
nikitamikhaylov 2020-10-06 22:01:55 +03:00
parent 861b3c0fc8
commit 746b7d0e13
3 changed files with 3 additions and 2 deletions

View File

@ -68,7 +68,7 @@ void JSONCompactEachRowRowOutputFormat::writeTotals(const Columns & columns, siz
writeCString("]\n", out);
}
void JSONCompactEachRowRowOutputFormat::writePrefix()
void JSONCompactEachRowRowOutputFormat::doWritePrefix()
{
if (with_names)
{

View File

@ -25,7 +25,7 @@ public:
String getName() const override { return "JSONCompactEachRowRowOutputFormat"; }
void writePrefix() override;
void doWritePrefix() override;
void writeBeforeTotals() override {}
void writeTotals(const Columns & columns, size_t row_num) override;

View File

@ -1,4 +1,5 @@
drop table if exists tsv;
set output_format_parallel_formatting=1;
create table tsv(a int, b int default 7) engine File(TSV);
insert into tsv(a) select number from numbers(10000000);