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