Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
winoros committed Nov 28, 2022
1 parent e285406 commit 953273f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions planner/core/partition_pruner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,6 @@ func TestListPartitionPruner(t *testing.T) {
partitionPrunerData.LoadTestCases(t, &input, &output)
valid := false
for i, tt := range input {
if tt == "select * from t1 where (id = 1 and a = 1) or a is null" {
fmt.Println("1")
}
testdata.OnRecord(func() {
output[i].SQL = tt
output[i].Result = testdata.ConvertRowsToStrings(tk.MustQuery(tt).Sort().Rows())
Expand Down
2 changes: 1 addition & 1 deletion planner/core/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ func (p *PhysicalTopN) pushTopNDownToDynamicPartition(copTsk *copTask) (task, bo
return nil, false
}
finalTblScanPlan := copTsk.tablePlan
if len(finalTblScanPlan.Children()) > 0 {
for len(finalTblScanPlan.Children()) > 0 {
finalTblScanPlan = finalTblScanPlan.Children()[0]
}
tblScan = finalTblScanPlan.(*PhysicalTableScan)
Expand Down

0 comments on commit 953273f

Please sign in to comment.