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

mergetable optimizer messes up sample #6179

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

mergetable optimizer messes up sample #6179

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

Comments

@monetdb-team
Copy link

Date: 2016-12-28 11:49:56 +0100
From: @sjoerdmullender
To: MonetDB5 devs <>
Version: 11.25.3 (Dec2016)

Last updated: 2017-01-26 14:56:13 +0100

Comment 24857

Date: 2016-12-28 11:49:56 +0100
From: @sjoerdmullender

The mergetable optimizer creates the following sequence from the instruction A := sample.subuniform(b,n):

t1 := sample.subuniform(b1,n);
t2 := sample.subuniform(b2,n);
t3 := sample.subuniform(b3,n);
t4 := sample.subuniform(b4,n);
a := mat.pack(t1,t2,t3,t4);
a := sample.subuniform(a,n);

This is wrong:
sample.subuniform() returns a candidate list for its argument bat, so the last call to sample.subuniform() returns an index into the result of the mat.pack(). The result should be subset of the result of the mat.pack(). In other words, there is an algebra.projection() missing.

Comment 24858

Date: 2016-12-28 11:51:20 +0100
From: MonetDB Mercurial Repository <>

Changeset d1af8f50919b made by Sjoerd Mullender sjoerd@acm.org in the MonetDB repo, refers to this bug.

For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=d1af8f50919b

Changeset description:

Add an extra algebra.projection call to the transformation of sample.subuniform.
This fixes bug #6179.

Comment 24913

Date: 2017-01-26 14:56:13 +0100
From: @kutsurak

Fixed in version Dec2016-SP1.

@monetdb-team monetdb-team added bug Something isn't working MAL/M5 normal 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 MAL/M5 normal
Projects
None yet
Development

No branches or pull requests

2 participants