CLICKHOUSE-3837 fix

This commit is contained in:
VadimPE 2018-07-25 15:53:38 +03:00
parent 867a3ebfae
commit 1b07873669
2 changed files with 2 additions and 1 deletions

View File

@ -249,7 +249,7 @@ BlockInputStreams StorageDistributed::read(
const auto & modified_query_ast = rewriteSelectQuery(
query_info.query, remote_database, remote_table, remote_table_function_ptr);
Block header = materializeBlock(InterpreterSelectQuery(query_info.query, context, {}, processed_stage).getSampleBlock());
Block header = materializeBlock(InterpreterSelectQuery(query_info.query, context, String{}, processed_stage).getSampleBlock());
ClusterProxy::SelectStreamFactory select_stream_factory = remote_table_function_ptr ?
ClusterProxy::SelectStreamFactory(

View File

@ -2,6 +2,7 @@
#include <Storages/ColumnsDescription.h>
#include <Parsers/IAST.h>
#include <Parsers/queryToString.h>
namespace DB