mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Fix PreparedSets
This commit is contained in:
parent
a3d1b3f502
commit
41d6243170
@ -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()));
|
||||
|
@ -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_);
|
||||
|
Loading…
Reference in New Issue
Block a user