in句子在经过hash join处理优化后, 对于多个字符串的范围的处理,结果不符合预期。
本文记录复现过程, 需要注意对于in句子需要在使用hash join优化后的逻辑处理中。
- drop table tasks;
- CREATE TABLE IF NOT EXISTS tasks (
- task_id INT(11) AUTO_INCREMENT,
- subject VARCHAR(45) DEFAULT NULL,
- start_date DATE DEFAULT NULL,
- end_date DATE DEFAULT NULL,
- description VARCHAR(200) DEFAULT NULL,
- PRIMARY KEY (task_id)
- )ENGINE=TIANMU DEFAULT CHARSET=utf8;
- INSERT INTO tasks(subject,start_date,end_date,description)
- VALUES('task-0','2017-07-21','2017-07-22','Start learning..');
-
-
- INSERT INTO tasks(subject,start_date,end_date,description)
- VALUES ('task-1','2017-01-01','2017-01-02','Description 1'),
- ('task-2','2017-01-01','2017-01-02'