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

Crash when using distinct on the result of a table returning function #6965

Closed
monetdb-team opened this issue Nov 30, 2020 · 0 comments
Closed
Labels
bug Something isn't working normal SQL

Comments

@monetdb-team
Copy link

Date: 2020-09-09 19:23:06 +0200
From: @swingbit
To: SQL devs <>
Version: 11.37.11 (Jun2020-SP1)
CC: @njnes

Last updated: 2020-10-19 11:06:21 +0200

Comment 28060

Date: 2020-09-09 19:23:06 +0200
From: @swingbit

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

This seems to apply to table-returning functions only.

I use sys.storage() as an example of table-returning function.

The following yields a segmentation fault:

explain select distinct sorted from sys.storage('sys');

Removing distinct makes it work.

Enabling assertions reveals that there is a problem here:

rel2bin_table: Assertion `sql->session->status == -10' failed.

Reproducible: Always

Comment 28065

Date: 2020-09-11 11:26:47 +0200
From: MonetDB Mercurial Repository <>

Changeset 618ec6381145 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=618ec6381145

Changeset description:

fixing bugs 6964 and  6965

escape functions with return statements in gnerator optimizer
make sure we don't remove the projection list of an table returning function in rel_push_project_down

Comment 28067

Date: 2020-09-11 11:29:16 +0200
From: @njnes

fixed in the jun branch.

Comment 28069

Date: 2020-09-11 12:25:33 +0200
From: MonetDB Mercurial Repository <>

Changeset 5ff6952a7069 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=5ff6952a7069

Changeset description:

Added tests for bugs 6964 and 6965
@monetdb-team monetdb-team added bug Something isn't working normal SQL labels Nov 30, 2020
@sjoerdmullender sjoerdmullender added this to the Ancient Release milestone Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working normal SQL
Projects
None yet
Development

No branches or pull requests

2 participants