Skip to content

Commit d28be7b

Browse files
author
Olav Sandstaa
committed
Bug#21872184 CONDITIONAL JUMP AT JOIN_CACHE::WRITE_RECORD_DATA IN SQL_JOIN_BUFFER.CC
Follow-up patch: Add ANALYZE TABLE to test case in order to stabilize rows estimates in explain output.
1 parent 2f44be6 commit d28be7b

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

mysql-test/suite/gcol/inc/gcol_select.inc

+2
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,8 @@ CREATE TABLE t4 (
10671067
INSERT INTO t4
10681068
VALUES (1, 'j'), (2, 'c'), (0, 'a');
10691069

1070+
ANALYZE TABLE t1, t2, t3, t4;
1071+
10701072
# Hint is added to avoid materialization of the subquery
10711073
let query=
10721074
SELECT /*+ NO_SEMIJOIN(@subq1) */ t1.c1, t2.i1

mysql-test/suite/gcol/r/gcol_select_innodb.result

+6
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,12 @@ c1 VARCHAR(1) NOT NULL
13521352
);
13531353
INSERT INTO t4
13541354
VALUES (1, 'j'), (2, 'c'), (0, 'a');
1355+
ANALYZE TABLE t1, t2, t3, t4;
1356+
Table Op Msg_type Msg_text
1357+
test.t1 analyze status OK
1358+
test.t2 analyze status OK
1359+
test.t3 analyze status OK
1360+
test.t4 analyze status OK
13551361
EXPLAIN SELECT /*+ NO_SEMIJOIN(@subq1) */ t1.c1, t2.i1
13561362
FROM t1 STRAIGHT_JOIN t3 STRAIGHT_JOIN t2
13571363
WHERE ( t3.pk IN

mysql-test/suite/gcol/r/gcol_select_myisam.result

+6
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,12 @@ c1 VARCHAR(1) NOT NULL
751751
);
752752
INSERT INTO t4
753753
VALUES (1, 'j'), (2, 'c'), (0, 'a');
754+
ANALYZE TABLE t1, t2, t3, t4;
755+
Table Op Msg_type Msg_text
756+
test.t1 analyze status OK
757+
test.t2 analyze status OK
758+
test.t3 analyze status OK
759+
test.t4 analyze status OK
754760
EXPLAIN SELECT /*+ NO_SEMIJOIN(@subq1) */ t1.c1, t2.i1
755761
FROM t1 STRAIGHT_JOIN t3 STRAIGHT_JOIN t2
756762
WHERE ( t3.pk IN

0 commit comments

Comments
 (0)