Files
tidb/cmd/explaintest/t/black_list.test

42 lines
921 B
Plaintext

use test;
drop table if exists t;
create table t (a int);
explain select * from t where a < 1;
insert into mysql.opt_rule_blacklist values('predicate_push_down');
admin reload opt_rule_blacklist;
explain select * from t where a < 1;
delete from mysql.opt_rule_blacklist where name='predicate_push_down';
admin reload opt_rule_blacklist;
explain select * from t where a < 1;
insert into mysql.expr_pushdown_blacklist values('<');
admin reload expr_pushdown_blacklist;
explain select * from t where a < 1;
delete from mysql.expr_pushdown_blacklist where name='<';
admin reload expr_pushdown_blacklist;
explain select * from t where a < 1;
insert into mysql.expr_pushdown_blacklist values('lt');
admin reload expr_pushdown_blacklist;
explain select * from t where a < 1;
delete from mysql.expr_pushdown_blacklist where name='lt';
admin reload expr_pushdown_blacklist;
explain select * from t where a < 1;