Skip to content

Commit

Permalink
create query in createQueryPlan
Browse files Browse the repository at this point in the history
  • Loading branch information
awildturtok committed Sep 20, 2021
1 parent fae01dc commit badd453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class SecondaryIdQuery extends Query {
@Override
public SecondaryIdQueryPlan createQueryPlan(QueryPlanContext context) {

return new SecondaryIdQueryPlan(query, context, secondaryId, withSecondaryId, withoutSecondaryId);
return new SecondaryIdQueryPlan(query, context, secondaryId, withSecondaryId, withoutSecondaryId, query.createQueryPlan(context.withSelectedSecondaryId(secondaryId)));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ public class SecondaryIdQueryPlan implements QueryPlan<MultilineEntityResult> {
private final Set<Column> tablesWithSecondaryId;
private final Set<Table> tablesWithoutSecondaryId;

private final ConceptQueryPlan queryPlan;


private final Map<String, ConceptQueryPlan> childPerKey = new HashMap<>();

private ConceptQueryPlan queryPlan;


/**
Expand Down Expand Up @@ -113,7 +115,6 @@ private Optional<MultilineEntityResult> createResult(Entity entity) {

@Override
public void init(QueryExecutionContext ctx, Entity entity) {
queryPlan = query.createQueryPlan(queryPlanContext.withSelectedSecondaryId(secondaryId));
queryPlan.init(ctx, entity);


Expand Down

0 comments on commit badd453

Please sign in to comment.