pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/

Home Page:https://pingcap.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SELECT execution failed when using opt_rule_blacklist

Nickelth opened this issue · comments

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE t0(c0 INTEGER UNSIGNED );
CREATE TABLE t1(c0 BOOL , c1 CHAR, c2 INT);
insert into t0 values(1), (2), (3);
insert into t1 values(0, 'a', 1), (1, 'b', 2), (1, 'c', 3);
INSERT INTO mysql.opt_rule_blacklist VALUES("predicate_push_down");
ADMIN reload opt_rule_blacklist;
SELECT t1.c0 FROM  t0 RIGHT JOIN t1 ON (NOT (false));

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

+------+
| c0   |
+------+
|    1 |
|    1 |
|    0 |
|    1 |
|    1 |
|    0 |
|    1 |
|    1 |
|    0 |
+------+

3. What did you see instead (Required)

ERROR 8118 (HY000): Failed to build executor

4. What is your TiDB version? (Required)

release version 8.0.0