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

Sqlitelogictest crash on group by query with having not in clause #6561

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

Sqlitelogictest crash on group by query with having not in clause #6561

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-03-24 20:40:35 +0100
From: @PedroTadim
To: SQL devs <>
Version: -- development
CC: @njnes

Last updated: 2019-05-03 10:37:51 +0200

Comment 26287

Date: 2018-03-24 20:40:35 +0100
From: @PedroTadim

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

Just run the query bellow for an assertion error in rel_bin.c

Reproducible: Always

Steps to Reproduce:

  1. CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER);
  2. INSERT INTO tab0 VALUES(83,0,38), (26,0,79), (43,81,24);
  3. SELECT - col0 * - + 8 + + + col0 + + + col0 + + + 42 * col0 FROM tab0 GROUP BY col0, col0, col1 HAVING NOT 18 + - col0 IN ( + CAST ( + col0 AS INTEGER ) );

Actual Results:

An assertion error in rel_bin.c:746: exp_bin: Assertion `0' failed.

Expected Results:

A single column with values 1352, 2236, 4316

The backtrace is already known from previous bugs :)

Comment 26288

Date: 2018-03-24 20:42:41 +0100
From: MonetDB Mercurial Repository <>

Changeset 26af4405a2a5 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=26af4405a2a5

Changeset description:

Added test for Bug #6561

Comment 26289

Date: 2018-03-25 18:14:46 +0200
From: MonetDB Mercurial Repository <>

Changeset 78237ac1720c 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=78237ac1720c

Changeset description:

fixed bug #6561, ie crash in groupby having in/cast (use rename expression properly)

no longer support (persistent) statistics on temporary tables

Comment 26321

Date: 2018-03-29 15:39:22 +0200
From: @sjoerdmullender

The Mar2018 version has been released.

Comment 26994

Date: 2019-05-03 10:37:51 +0200
From: MonetDB Mercurial Repository <>

Changeset 2ecd89950f47 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=2ecd89950f47

Changeset description:

Adding more sqlite tests failing queries:

Bug #6560 gives right results in Apr2019 branch, but wrong on default.
Bug #6561 we should analyze first, but I think MonetDB outputs wrong results.
Bug #6576 more overflows in calculations.
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