Enable block skip for null format in processors pipeline.

This commit is contained in:
Nikolai Kochetov 2020-01-23 15:59:01 +03:00
parent f85e7ca36d
commit b3e33b8330

View File

@ -578,8 +578,10 @@ BlockIO executeQuery(
if (const auto * ast_query_with_output = dynamic_cast<const ASTQueryWithOutput *>(ast.get()))
{
String format_name = ast_query_with_output && (ast_query_with_output->format != nullptr)
? getIdentifierName(ast_query_with_output->format) : context.getDefaultFormat();
String format_name = ast_query_with_output->format
? getIdentifierName(ast_query_with_output->format)
: context.getDefaultFormat();
if (format_name == "Null")
streams.null_format = true;
}