mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Update FormatsFactory.
This commit is contained in:
parent
f2be163fb0
commit
fa9b27eec2
@ -92,18 +92,18 @@ BlockInputStreamPtr FormatFactory::getInput(
|
||||
|
||||
BlockOutputStreamPtr FormatFactory::getOutput(const String & name, WriteBuffer & buf, const Block & sample, const Context & context) const
|
||||
{
|
||||
// if (name == "PrettyCompactMonoBlock")
|
||||
// {
|
||||
// /// TODO: rewrite
|
||||
// auto format = getOutputFormat("PrettyCompact", buf, sample, context);
|
||||
// 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);
|
||||
// }
|
||||
if (name == "PrettyCompactMonoBlock")
|
||||
{
|
||||
/// TODO: rewrite
|
||||
auto format = getOutputFormat("PrettyCompact", buf, sample, context);
|
||||
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);
|
||||
}
|
||||
|
||||
if (!getCreators(name).output_processor_creator)
|
||||
return getOutput(name, buf, sample, context);
|
||||
|
Loading…
Reference in New Issue
Block a user