diff --git a/dbms/src/Formats/FormatFactory.cpp b/dbms/src/Formats/FormatFactory.cpp index e812eda944a..0c28d1ec8e7 100644 --- a/dbms/src/Formats/FormatFactory.cpp +++ b/dbms/src/Formats/FormatFactory.cpp @@ -97,8 +97,8 @@ BlockOutputStreamPtr FormatFactory::getOutput(const String & name, WriteBuffer & auto format = getOutputFormat(name, buf, sample, context); return std::make_shared( std::make_shared( - std::make_shared(format), sample), - sample, context.getSettingsRef().output_format_pretty_max_rows, 0); + std::make_shared(format), + sample, context.getSettingsRef().output_format_pretty_max_rows, 0), sample); } auto format = getOutputFormat(name, buf, sample, context);