mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
better test + fix writePrefix in JSONCompact
This commit is contained in:
parent
861b3c0fc8
commit
746b7d0e13
@ -68,7 +68,7 @@ void JSONCompactEachRowRowOutputFormat::writeTotals(const Columns & columns, siz
|
||||
writeCString("]\n", out);
|
||||
}
|
||||
|
||||
void JSONCompactEachRowRowOutputFormat::writePrefix()
|
||||
void JSONCompactEachRowRowOutputFormat::doWritePrefix()
|
||||
{
|
||||
if (with_names)
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user