Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#53097
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
yibin87 authored and ti-chi-bot committed May 10, 2024
1 parent d1e3dee commit d7ed7c2
Show file tree
Hide file tree
Showing 3 changed files with 682 additions and 0 deletions.
15 changes: 15 additions & 0 deletions executor/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -3128,6 +3128,21 @@ func (b *executorBuilder) corColInDistPlan(plans []plannercore.PhysicalPlan) boo
return true
}
}
<<<<<<< HEAD:executor/builder.go
=======
case *plannercore.PhysicalProjection:
for _, expr := range x.Exprs {
if len(expression.ExtractCorColumns(expr)) > 0 {
return true
}
}
case *plannercore.PhysicalTopN:
for _, byItem := range x.ByItems {
if len(expression.ExtractCorColumns(byItem.Expr)) > 0 {
return true
}
}
>>>>>>> 203e5f2cff1 (executor: Fix push downed topN won't replace correlated column problem (#53097)):pkg/executor/builder.go
case *plannercore.PhysicalTableScan:
for _, cond := range x.LateMaterializationFilterCondition {
if len(expression.ExtractCorColumns(cond)) > 0 {
Expand Down
4 changes: 4 additions & 0 deletions executor/issuetest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ go_test(
"main_test.go",
],
flaky = True,
<<<<<<< HEAD:executor/issuetest/BUILD.bazel
shard_count = 50,
=======
shard_count = 19,
>>>>>>> 203e5f2cff1 (executor: Fix push downed topN won't replace correlated column problem (#53097)):pkg/executor/test/issuetest/BUILD.bazel
deps = [
"//autoid_service",
"//config",
Expand Down
Loading

0 comments on commit d7ed7c2

Please sign in to comment.