mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
fix
This commit is contained in:
parent
985f2f2704
commit
11955b550f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user