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
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Build Identifier:
-- all of them
DROP SCHEMA IF EXISTS foo;
CREATE SCHEMA foo;
SET SCHEMA foo;
CREATE TABLE data_local (origin CHAR(5), dest CHAR(5));
INSERT INTO data_local
VALUES
-- flights from foo to bar and vice versa
('foo', 'bar'), ('bar', 'foo'),
('foo', 'bar'),
-- but one way only from foo to baz
('foo', 'baz');
-- master
CREATE REMOTE TABLE data_slave1 (LIKE data_local)
ON 'mapi:monetdb://localhost:50001/slave1';
CREATE REMOTE TABLE data_slave2 (LIKE data_local)
ON 'mapi:monetdb://localhost:50002/slave2';
CREATE MERGE TABLE data_1merged (LIKE data_local);
ALTER TABLE data_1merged ADD TABLE data_slave1;
CREATE MERGE TABLE data_2merged (LIKE data_local);
ALTER TABLE data_2merged ADD TABLE data_slave1;
ALTER TABLE data_2merged ADD TABLE data_slave2;
-- slave1
CREATE TABLE data_slave1 AS SELECT * FROM data_local WITH DATA;
-- slave2
CREATE TABLE data_slave2 AS SELECT * FROM data_local WITH DATA;
If I then run the following queries
-- inc
SELECT origin, count(*) as incoming
FROM data_2merged
WHERE dest = 'foo'
GROUP BY origin
;
-- outg
SELECT dest, count(*) as outgoing
FROM data_2merged
WHERE origin = 'foo'
GROUP BY dest
;
WITH inc AS (
SELECT origin, count(*) as incoming
FROM data_2merged
WHERE dest = 'foo'
GROUP BY origin
),
outg AS (
SELECT dest, count(*) as outgoing
FROM data_2merged
WHERE origin = 'foo'
GROUP BY dest
)
SELECT *
FROM inc FULL OUTER JOIN outg ON inc.origin = outg.dest
;
Date: 2017-10-31 11:21:58 +0100
From: @joerivanruth
To: SQL devs <>
Version: 11.27.9 (Jul2017-SP2)
CC: @njnes
Last updated: 2017-12-14 14:46:04 +0100
Comment 25825
Date: 2017-10-31 11:21:58 +0100
From: @joerivanruth
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Build Identifier:
I have three databases running on
They are initialized with the following scripts
If I then run the following queries
I expect the output
But on the last line I get
instead.
Reproducible: Always
Comment 25853
Date: 2017-11-08 21:59:01 +0100
From: MonetDB Mercurial Repository <>
Changeset 0d8fd1c7710c made by Niels Nes niels@cwi.nl in the MonetDB repo, refers to this bug.
For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=0d8fd1c7710c
Changeset description:
Comment 25855
Date: 2017-11-08 21:59:51 +0100
From: @njnes
fixed, removed flag for changing null into 0 incase of outer joins
The text was updated successfully, but these errors were encountered: