From 1b078736698d8fde222a5d5b2abede347adf0481 Mon Sep 17 00:00:00 2001 From: VadimPE Date: Wed, 25 Jul 2018 15:53:38 +0300 Subject: [PATCH] CLICKHOUSE-3837 fix --- dbms/src/Storages/StorageDistributed.cpp | 2 +- dbms/src/Storages/getStructureOfRemoteTable.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dbms/src/Storages/StorageDistributed.cpp b/dbms/src/Storages/StorageDistributed.cpp index 937b2d02b8..66df474509 100644 --- a/dbms/src/Storages/StorageDistributed.cpp +++ b/dbms/src/Storages/StorageDistributed.cpp @@ -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( diff --git a/dbms/src/Storages/getStructureOfRemoteTable.h b/dbms/src/Storages/getStructureOfRemoteTable.h index f537fa9bd5..9f1769a709 100644 --- a/dbms/src/Storages/getStructureOfRemoteTable.h +++ b/dbms/src/Storages/getStructureOfRemoteTable.h @@ -2,6 +2,7 @@ #include #include +#include namespace DB -- GitLab