提交 626468d2 编写于 作者: V Vitaliy Zakaznikov

Adding support for streaming mode to JSONEachRowRowOutputFormat

上级 369b4d53
......@@ -22,6 +22,12 @@ JSONEachRowRowOutputFormat::JSONEachRowRowOutputFormat(WriteBuffer & out_, const
}
}
void JSONEachRowRowOutputFormat::consume(DB::Chunk chunk)
{
IRowOutputFormat::consume(std::move(chunk));
if (settings.enable_streaming)
flush();
}
void JSONEachRowRowOutputFormat::writeField(const IColumn & column, const IDataType & type, size_t row_num)
{
......
......@@ -25,6 +25,7 @@ public:
void writeRowEndDelimiter() override;
protected:
void consume(Chunk chunk) override;
/// No totals and extremes.
void consumeTotals(Chunk) override {}
void consumeExtremes(Chunk) override {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册