-
-
Notifications
You must be signed in to change notification settings - Fork 599
Open
Labels
Description
Dear Dolt Developers,
I encountered an unexpected execution result in Dolt and would greatly appreciate it if you could take a look. Let's make concerted efforts in enhancing the robustness of Dolt. Thank you very much!
CREATE TABLE t0(c0 BOOLEAN , c1 INT , c2 VARCHAR(500) , c3 BOOLEAN );
CREATE TABLE t1(c0 INT , c1 BOOLEAN , c2 BOOLEAN);
CREATE INDEX t0i0 ON t0 (c3 , c2 ) ;
INSERT INTO t1(c2, c0, c1) VALUES (true, true, true);
INSERT INTO t1(c1, c2, c0) VALUES ('', false, false);
INSERT INTO t1(c2, c1, c0) VALUES (true, false, -1);
INSERT INTO t0(c2, c3) VALUES (1, false);
INSERT INTO t0(c3) VALUES (false);
UPDATE t0 SET c3='-128', c1=false;
INSERT INTO t0(c3) VALUES (true);
INSERT INTO t0(c1, c0) VALUES (10, '');
INSERT INTO t0(c0, c1) VALUES ('', -16);
INSERT INTO t0(c2, c3, c0) VALUES ('', true, false);
INSERT INTO t0(c0) VALUES (false);
INSERT INTO t0(c2, c1) VALUES (true, false);
INSERT INTO t0(c1) VALUES (1), (4), ('');
SELECT * FROM t1 INNER JOIN t0 ON ((t0.c3)<=>(-87840));
-- 6 rows
SELECT * FROM t0 INNER JOIN t1 ON ((t0.c3)<=>(-87840));
-- 6 rows
SELECT /*+ JOIN_ORDER(t0, t1)*/ * FROM t1 INNER JOIN t0 ON ((t0.c3)<=>(-87840));
-- 0 rowsAdding query hint shouldn't affect query result
Commit: 9571842