Update Compressor.cpp

This commit is contained in:
alesapin 2018-12-26 23:53:39 +03:00 committed by GitHub
parent 31f82940e1
commit 9e32de053d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ int mainEntryClickHouseCompressor(int argc, char ** argv)
codec = DB::CompressionCodecFactory::instance().get(codec_names); codec = DB::CompressionCodecFactory::instance().get(codec_names);
} }
else else
codec = DB::CompressionCodecFactory::instance().get(method_family, levels.empty() ? std::nullopt : std::optional(levels.back())); codec = DB::CompressionCodecFactory::instance().get(method_family, levels.empty() ? std::nullopt : std::optional<int>(levels.back()));
DB::ReadBufferFromFileDescriptor rb(STDIN_FILENO); DB::ReadBufferFromFileDescriptor rb(STDIN_FILENO);