[regression-test](topn opt) fix case that explain with wrong result (#25316)

`select * from tbl where k = 1 order by k limit 1` will eliminate sort in original planner
This commit is contained in:
lihangyu
2023-10-12 10:16:42 +08:00
committed by GitHub
parent 7ca63665b4
commit c4916184f1

View File

@ -42,7 +42,7 @@ suite("topn_2pr_rule") {
contains "OPT TWO PHASE"
}
explain {
sql("select * from ${table_name} where k = 1 order by k limit 1;")
sql("select * from ${table_name} where k > 1 order by k limit 1;")
contains "OPT TWO PHASE"
}
explain {