mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
CLICKHOUSE-3476 fix
This commit is contained in:
parent
11955b550f
commit
d04db2a211
@ -164,16 +164,13 @@ BlockInputStreamPtr ClickHouseDictionarySource::createStreamForSelectiveLoad(con
|
||||
std::string ClickHouseDictionarySource::doInvalidateQuery(const std::string & request) const
|
||||
{
|
||||
Block invalidate_sample_block;
|
||||
ColumnPtr column(ColumnString::create());
|
||||
invalidate_sample_block.insert(ColumnWithTypeAndName(column, std::make_shared<DataTypeString>(), ""));
|
||||
|
||||
if (is_local)
|
||||
{
|
||||
auto tmp = executeQuery(request, context, true).in;
|
||||
return readInvalidateQuery(dynamic_cast<IProfilingBlockInputStream&>((*tmp)));
|
||||
auto input_block = executeQuery(request, context, true).in;
|
||||
return readInvalidateQuery(dynamic_cast<IProfilingBlockInputStream&>((*input_block)));
|
||||
}
|
||||
|
||||
|
||||
auto invalidate_stream = RemoteBlockInputStream(pool, request, invalidate_sample_block, context);
|
||||
|
||||
return readInvalidateQuery(invalidate_stream);
|
||||
|
Loading…
Reference in New Issue
Block a user