mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Revert changes for CSVRowOutputFormat.
This commit is contained in:
parent
201a184d31
commit
2f06180c5e
@ -13,6 +13,8 @@ namespace DB
|
||||
*/
|
||||
struct FormatSettings
|
||||
{
|
||||
/// Format will be used for streaming. Not every formats support it
|
||||
/// Option means that each chunk of data need to be formatted independently. Also each chunk will be flushed at the end of processing.
|
||||
bool enable_streaming = false;
|
||||
|
||||
struct JSON
|
||||
|
@ -18,12 +18,6 @@ CSVRowOutputFormat::CSVRowOutputFormat(WriteBuffer & out_, const Block & header_
|
||||
data_types[i] = sample.safeGetByPosition(i).type;
|
||||
}
|
||||
|
||||
void CSVRowOutputFormat::consume(DB::Chunk chunk)
|
||||
{
|
||||
IRowOutputFormat::consume(std::move(chunk));
|
||||
if (format_settings.enable_streaming)
|
||||
flush();
|
||||
}
|
||||
|
||||
void CSVRowOutputFormat::writePrefix()
|
||||
{
|
||||
|
@ -39,7 +39,6 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
void consume(Chunk chunk) override;
|
||||
bool with_names;
|
||||
const FormatSettings format_settings;
|
||||
DataTypes data_types;
|
||||
|
Loading…
Reference in New Issue
Block a user