mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Update FormatFactory.
This commit is contained in:
parent
2d5b282a31
commit
77d81687b3
@ -95,10 +95,13 @@ BlockOutputStreamPtr FormatFactory::getOutput(const String & name, WriteBuffer &
|
||||
{
|
||||
/// TODO: rewrite
|
||||
auto format = getOutputFormat("PrettyCompact", buf, sample, context);
|
||||
return std::make_shared<MaterializingBlockOutputStream>(
|
||||
std::make_shared<SquashingBlockOutputStream>(
|
||||
std::make_shared<OutputStreamToOutputFormat>(format),
|
||||
sample, context.getSettingsRef().output_format_pretty_max_rows, 0), sample);
|
||||
auto res = std::make_shared<SquashingBlockOutputStream>(
|
||||
std::make_shared<OutputStreamToOutputFormat>(format),
|
||||
sample, context.getSettingsRef().output_format_pretty_max_rows, 0);
|
||||
|
||||
res->disableFlush();
|
||||
|
||||
return std::make_shared<MaterializingBlockOutputStream>(res, sample);
|
||||
}
|
||||
|
||||
auto format = getOutputFormat(name, buf, sample, context);
|
||||
|
Loading…
Reference in New Issue
Block a user