Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MERGE TABLE issue: Cannot register #6341

monetdb-team opened this issue Nov 30, 2020 · 0 comments

MERGE TABLE issue: Cannot register #6341

monetdb-team opened this issue Nov 30, 2020 · 0 comments


Copy link

@monetdb-team monetdb-team commented Nov 30, 2020

Date: 2017-07-06 00:14:52 +0200
From: @joerivanruth
To: SQL devs <>
Version: -- development
CC: @njnes

Last updated: 2017-08-02 10:21:26 +0200

Comment 25419

Date: 2017-07-06 00:14:52 +0200
From: @joerivanruth

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Build Identifier:

This is the first report in a series of three issues found while
testing the Air Traffic queries. I'm filing separate reports because
the underlying cause may or may not be the same.

In this case, the attached queries cause the mserver5 to exit with
something like the following:

 (mapi:monetdb://monetdb@localhost/slave1) Cannot register A0 char(5,0),A1 date(0,0),A2 date(0,0)
 group by (
 project (
 select (
 table(atraf.ontime_slave1) [ "ontime_slave1"."Year" as "ontime"."Year", ...

I would expect an empty query result instead.

To reproduce, first start three mserver5's as in the attached Then run This initializes the databases and
runs the failing queries.

Be careful: first uses 'killall' to kill ALL existing
processes named 'mserver5'.

I tested this with Mercurial revision 6a7ff140ae05 on the Jul2017

Reproducible: Always

Comment 25420

Date: 2017-07-06 00:16:30 +0200
From: @joerivanruth

Created attachment 554
script to reproduce

Attached file: 6341.tar.gz (application/x-gzip, 2222 bytes)
Description: script to reproduce

Comment 25456

Date: 2017-07-13 08:57:51 +0200
From: MonetDB Mercurial Repository <>

Changeset 7bc1969a7552 made by Niels Nes in the MonetDB repo, refers to this bug.

For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=7bc1969a7552

Changeset description:

fixes for bugs 6341, 6342 and 6343
For 6343 more is needed.

added missing sql_div definitions (for decimals)
added parsing of anti ( ! ) in rel dump
handle aliases with in the group by operator

pushed merge table rewrites down functions

Comment 25459

Date: 2017-07-13 09:01:04 +0200
From: @njnes

fixed by handling aliases in the group by

Comment 25536

Date: 2017-08-02 10:21:26 +0200
From: @sjoerdmullender

Fixed in Jul2017-SP1 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant