This commit is contained in:
VadimPE 2018-09-13 15:24:34 +03:00
parent 985f2f2704
commit 11955b550f

View File

@ -136,7 +136,6 @@ bool ClickHouseDictionarySource::isModified() const
if (!invalidate_query.empty()) if (!invalidate_query.empty())
{ {
auto response = doInvalidateQuery(invalidate_query); auto response = doInvalidateQuery(invalidate_query);
std::cout << response << std::endl;
if (invalidate_query_response == response) if (invalidate_query_response == response)
return false; return false;
invalidate_query_response = response; invalidate_query_response = response;
@ -166,13 +165,14 @@ std::string ClickHouseDictionarySource::doInvalidateQuery(const std::string & re
{ {
Block invalidate_sample_block; Block invalidate_sample_block;
ColumnPtr column(ColumnString::create()); ColumnPtr column(ColumnString::create());
invalidate_sample_block.insert(ColumnWithTypeAndName(column, std::make_shared<DataTypeString>(), "Sample Block")); invalidate_sample_block.insert(ColumnWithTypeAndName(column, std::make_shared<DataTypeString>(), ""));
if (is_local) if (is_local)
{ {
auto tmp = executeQuery(request, context, true).in; auto tmp = executeQuery(request, context, true).in;
return readInvalidateQuery(dynamic_cast<IProfilingBlockInputStream&>((*tmp))); return readInvalidateQuery(dynamic_cast<IProfilingBlockInputStream&>((*tmp)));
} }
auto invalidate_stream = RemoteBlockInputStream(pool, request, invalidate_sample_block, context); auto invalidate_stream = RemoteBlockInputStream(pool, request, invalidate_sample_block, context);