Skip to content

NATURAL FULL JOIN incorrectly parsed as NATURAL RIGHT JOIN #10268

@TheoristCoder

Description

@TheoristCoder

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, PRIMARY KEY(c0));
CREATE TABLE t1(c0 BOOLEAN, c1 VARCHAR(500), PRIMARY KEY(c0));
INSERT INTO t1(c1, c0) VALUES (NULL, true);
INSERT INTO t0(c0, c1) VALUES (true, 4);

SELECT * FROM t1 NATURAL FULL JOIN t0;
-- 1, 4

SELECT /*+ MERGE_JOIN(t0, t1)*/ * FROM t1 NATURAL FULL JOIN t0;
-- Empty Result

Commit: ed7ddc5

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions