Fix PreparedSets

This commit is contained in:
Nikolai Kochetov 2024-02-07 12:43:26 +00:00
parent a3d1b3f502
commit 41d6243170
2 changed files with 2 additions and 9 deletions

View File

@ -205,18 +205,11 @@ SetPtr FutureSetFromSubquery::buildOrderedSetInplace(const ContextPtr & context)
}
}
if (!set_and_key->set->hasSetElements())
set_and_key->set->fillSetElements();
return buildSetInplace(context);
}
SetPtr FutureSetFromSubquery::buildSetInplace(const ContextPtr & context)
{
auto plan = build(context);
if (!plan)
return nullptr;
set_and_key->set->fillSetElements();
auto builder = plan->buildQueryPipeline(QueryPlanOptimizationSettings::fromContext(context), BuildQueryPipelineSettings::fromContext(context));
auto pipeline = QueryPipelineBuilder::getPipeline(std::move(*builder));
pipeline.complete(std::make_shared<EmptySink>(Block()));

View File

@ -111,9 +111,9 @@ public:
SetPtr get() const override;
DataTypes getTypes() const override;
SetPtr buildOrderedSetInplace(const ContextPtr & context) override;
SetPtr buildSetInplace(const ContextPtr & context);
std::unique_ptr<QueryPlan> build(const ContextPtr & context);
void buildSetInplace(const ContextPtr & context);
QueryTreeNodePtr detachQueryTree() { return std::move(query_tree); }
void setQueryPlan(std::unique_ptr<QueryPlan> source_);