Skip to content

Commit

Permalink
This is an automated cherry-pick of #54334
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
dash12653 authored and ti-chi-bot committed Jan 24, 2025
1 parent 5e39597 commit 4065837
Show file tree
Hide file tree
Showing 3 changed files with 1,230 additions and 0 deletions.
5 changes: 5 additions & 0 deletions planner/core/expression_rewriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,11 @@ func (er *expressionRewriter) handleInSubquery(ctx context.Context, v *ast.Patte
copy(join.names, er.p.OutputNames())
copy(join.names[er.p.Schema().Len():], agg.OutputNames())
join.AttachOnConds(expression.SplitCNFItems(checkCondition))
// set FullSchema and FullNames for this join
if left, ok := planCtx.plan.(*logicalop.LogicalJoin); ok && left.FullSchema != nil {
join.FullSchema = left.FullSchema
join.FullNames = left.FullNames
}
// Set join hint for this join.
if er.b.TableHints() != nil {
join.setPreferredJoinTypeAndOrder(er.b.TableHints())
Expand Down
Loading

0 comments on commit 4065837

Please sign in to comment.