You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following SELECT query triggers an assertion in rel_bin.c:673.
Playing a bit with some alternatives of the SELECT query reveals that the problem lies in the combination of LEFT JOIN and the OR condition. Queries without either the LEFT JOIN or the 'OR' condition work fine.
I'll add a test for this shortly.
==============
CREATE TABLE foo (id INTEGER, bar1 INTEGER, bar2 INTEGER);
CREATE TABLE bar (barid INTEGER, value CHAR(10));
INSERT INTO bar VALUES (1, 'aaa');
INSERT INTO bar VALUES (2, 'bbb');
INSERT INTO bar VALUES (3, 'ccc');
INSERT INTO foo VALUES (100, 1, 2);
INSERT INTO foo VALUES (101, 2, 3);
SELECT B.value, F.id FROM bar B LEFT JOIN foo F ON (F.bar1 = B.barid OR F.bar2 = B.barid);
Date: 2016-01-25 11:36:08 +0100
From: @yzchang
To: SQL devs <>
Version: 11.21.13 (Jul2015-SP2)
CC: @njnes
Last updated: 2016-03-25 09:59:20 +0100
Comment 21745
Date: 2016-01-25 11:36:08 +0100
From: @yzchang
The following SELECT query triggers an assertion in rel_bin.c:673.
Playing a bit with some alternatives of the SELECT query reveals that the problem lies in the combination of LEFT JOIN and the OR condition. Queries without either the LEFT JOIN or the 'OR' condition work fine.
I'll add a test for this shortly.
==============
CREATE TABLE foo (id INTEGER, bar1 INTEGER, bar2 INTEGER);
CREATE TABLE bar (barid INTEGER, value CHAR(10));
INSERT INTO bar VALUES (1, 'aaa');
INSERT INTO bar VALUES (2, 'bbb');
INSERT INTO bar VALUES (3, 'ccc');
INSERT INTO foo VALUES (100, 1, 2);
INSERT INTO foo VALUES (101, 2, 3);
SELECT B.value, F.id FROM bar B LEFT JOIN foo F ON (F.bar1 = B.barid OR F.bar2 = B.barid);
Comment 21746
Date: 2016-01-25 12:39:01 +0100
From: MonetDB Mercurial Repository <>
Changeset cc9d1446c68d made by Jennie Zhang y.zhang@cwi.nl in the MonetDB repo, refers to this bug.
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=cc9d1446c68d
Changeset description:
Comment 21749
Date: 2016-01-25 12:56:51 +0100
From: MonetDB Mercurial Repository <>
Changeset 45e43b607470 made by Jennie Zhang y.zhang@cwi.nl in the MonetDB repo, refers to this bug.
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=45e43b607470
Changeset description:
Comment 21758
Date: 2016-01-31 21:15:46 +0100
From: MonetDB Mercurial Repository <>
Changeset d66505ca653e made by Niels Nes niels@cwi.nl in the MonetDB repo, refers to this bug.
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=d66505ca653e
Changeset description:
Comment 21759
Date: 2016-01-31 21:44:31 +0100
From: @njnes
outer joins with or expressions were not correctly handled. Is fixed now.
Comment 21961
Date: 2016-03-25 09:59:20 +0100
From: @sjoerdmullender
Jul2015-SP3 has been released.
The text was updated successfully, but these errors were encountered: