diff --git a/src/Storages/StorageFile.cpp b/src/Storages/StorageFile.cpp index 793d57000d9..85888ee4b6a 100644 --- a/src/Storages/StorageFile.cpp +++ b/src/Storages/StorageFile.cpp @@ -483,11 +483,6 @@ public: writer = FormatFactory::instance().getOutputStreamParallelIfPossible(storage.format_name, *write_buf, metadata_snapshot->getSampleBlock(), context, {}, format_settings); - - if (!writer) - writer = FormatFactory::instance().getOutputStream(storage.format_name, - *write_buf, metadata_snapshot->getSampleBlock(), context, - {}, format_settings); } Block getHeader() const override { return metadata_snapshot->getSampleBlock(); }