Skip to content

Commit eceeabd

Browse files
author
Justin Jose
committed
Bug#36213938:QEP regression with prefer_ordering_index=off
post push fix: This patch fixes the order_by_limit.test failure seen on PB2 hypergraph enabled runs. Change-Id: I7cf47e03bf5289447562cbb6b11949da3432332a
1 parent 9e993ee commit eceeabd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

mysql-test/t/order_by_limit.test

+8-2
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,14 @@ SET optimizer_switch = "prefer_ordering_index=off";
604604

605605
# Verify that the index usage recheck function is called
606606
--connection default
607-
--let $wait_condition= SELECT COUNT(*)=1 FROM performance_schema.threads WHERE NAME = "thread/sql/one_connection" AND PROCESSLIST_INFO LIKE "EXPLAIN SELECT * FROM t1%" AND PROCESSLIST_STATE = "preparing" ;
608-
--source include/wait_condition.inc
607+
--let $using_hypergraph = `SELECT FIND_IN_SET('hypergraph_optimizer=on', @@optimizer_switch)`
608+
if ($using_hypergraph) {
609+
--echo <ignored hypergraph optimizer error: Depends on the query plan>
610+
}
611+
if (!$using_hypergraph) {
612+
--let $wait_condition= SELECT COUNT(*)=1 FROM performance_schema.threads WHERE NAME = "thread/sql/one_connection" AND PROCESSLIST_INFO LIKE "EXPLAIN SELECT * FROM t1%" AND PROCESSLIST_STATE = "preparing" ;
613+
--source include/wait_condition.inc
614+
}
609615

610616
# Continue execution
611617
SET DEBUG_SYNC= "now SIGNAL signal.prefer_ordering_index_check_continue";

0 commit comments

Comments
 (0)