mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Adding support for streaming mode to JSONEachRowRowOutputFormat
This commit is contained in:
parent
369b4d53ef
commit
626468d255
@ -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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user