pingcap / pingcap/tidb

executor: build executor failed when disable predidate pushdown

Open
#48,541 2 comments 0 reactions 0 assignees View on GitHub
may-affects-5.3 may-affects-5.4 may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 severity/moderate sig/planner type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)
```SQL
drop table if exists t1, t2;
create table t1 (a int primary key, b int(1), unique index idx(b));
insert into t1 values(1,1),(2,2),(3,3),(4,4);
create table t2 (a int primary key, b int(1), unique index idx(b));
insert into t2 values(1,1),(2,2),(3,3),(4,4);
insert into mysql.opt_rule_blacklist values('predicate_push_down');ADMIN reload opt_rule_blacklist;
SELECT /*+ hash_join(t1,t2) */ t1.b,t2.b FROM t2 RIGHT JOIN t1 ON t2.b and t2.a > 3;
```

### 2. What did you expect to see? (Required)
image

### 3. What did you see instead (Required)

image

### 4. What is your TiDB version? (Required)
image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.