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

Nested Merge tables cause an infinite loop in rel_optimizer #6585

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

Nested Merge tables cause an infinite loop in rel_optimizer #6585

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

Comments

@monetdb-team
Copy link

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

Date: 2018-04-19 13:59:53 +0200
From: @PedroTadim
To: SQL devs <>
Version: 11.29.3 (Mar2018)

Last updated: 2018-06-20 11:02:11 +0200

Comment 26383

Date: 2018-04-19 13:59:53 +0200
From: @PedroTadim

User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36
Build Identifier:

Add a merge table 2 into merge table 1, then merge table 1 into merge table 2. Doing a select query into any of these tables will cause an infinite loop in rel_optimizer. However I already fixed it.

Reproducible: Always

Steps to Reproduce:

  1. create merge table test1 (a int);
  2. create merge table test2 (a int);
  3. alter table test1 add table test2;
  4. alter table test2 add table test1;
  5. select a from test1;

Actual Results:

An infinite loop in rel_optimizer.

Expected Results:

An empty result set.

I already fixed it.

Comment 26384

Date: 2018-04-19 14:01:08 +0200
From: MonetDB Mercurial Repository <>

Changeset 097dd32a0c74 made by Pedro Ferreira pedro.ferreira@monetdbsolutions.com in the MonetDB repo, refers to this bug.

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

Changeset description:

Added test and fixes bug #6585

ie check for the table to be added if it is already a parent of the merge table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant