mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Enable block skip for null format in processors pipeline.
This commit is contained in:
parent
f431b10e38
commit
f85e7ca36d
@ -575,14 +575,15 @@ BlockIO executeQuery(
|
||||
BlockIO streams;
|
||||
std::tie(ast, streams) = executeQueryImpl(query.data(), query.data() + query.size(), context,
|
||||
internal, stage, !may_have_embedded_data, nullptr, allow_processors);
|
||||
if (streams.in)
|
||||
|
||||
if (const auto * ast_query_with_output = dynamic_cast<const ASTQueryWithOutput *>(ast.get()))
|
||||
{
|
||||
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();
|
||||
if (format_name == "Null")
|
||||
streams.null_format = true;
|
||||
}
|
||||
|
||||
return streams;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user