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())
{
auto response = doInvalidateQuery(invalidate_query);
std::cout << response << std::endl;
if (invalidate_query_response == response)
return false;
invalidate_query_response = response;
@ -166,7 +165,7 @@ std::string ClickHouseDictionarySource::doInvalidateQuery(const std::string & re
{
Block invalidate_sample_block;
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)
{
@ -174,6 +173,7 @@ std::string ClickHouseDictionarySource::doInvalidateQuery(const std::string & re
return readInvalidateQuery(dynamic_cast<IProfilingBlockInputStream&>((*tmp)));
}
auto invalidate_stream = RemoteBlockInputStream(pool, request, invalidate_sample_block, context);
return readInvalidateQuery(invalidate_stream);