Fix error

This commit is contained in:
Alexey Milovidov 2024-06-23 17:18:32 +02:00
parent e064171a68
commit 84f81c6185

View File

@ -96,6 +96,10 @@ void Suggest::load(ContextPtr context, const ConnectionParameters & connection_p
loading_thread = std::thread([my_context = Context::createCopy(context), connection_parameters, suggestion_limit, this]
{
ThreadStatus thread_status;
my_context->makeQueryContext();
auto group = ThreadGroup::createForQuery(my_context);
CurrentThread::attachToGroup(group);
for (size_t retry = 0; retry < 10; ++retry)
{
try