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 overflow in conversion during MAL plan execution #6517

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

Sqlitelogictest overflow in conversion during MAL plan execution #6517

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-01-18 12:13:41 +0100
From: @PedroTadim
To: SQL devs <>
Version: -- development
CC: martin.van.dinther, @njnes

Last updated: 2019-07-24 17:49:03 +0200

Comment 26097

Date: 2018-01-18 12:13:41 +0100
From: @PedroTadim

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

A SELECT with the IN operator fails in this scenario:

  • 86 IN ( 47 * - 49 + 22 )
    where -2281, the result of (47 * - 49 + 22) as a short, cannot be converted to a bte.

Reproducible: Always

Steps to Reproduce:

  1. CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER);
  2. INSERT INTO tab1 VALUES(51,14,96);
  3. INSERT INTO tab1 VALUES(85,5,59);
  4. INSERT INTO tab1 VALUES(91,47,68);
  5. SELECT - col1 FROM tab1 WHERE NOT - 86 IN ( 47 * - 49 + 22 );

Actual Results:

The following error:
overflow in conversion of -2281 to bte.

Expected Results:

The result set: -14, -5, -47

Comment 26099

Date: 2018-01-18 12:37:33 +0100
From: MonetDB Mercurial Repository <>

Changeset ca5cee4ff0fd 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=ca5cee4ff0fd

Changeset description:

Added tests for bugs 6516 and 6517

Comment 26101

Date: 2018-01-18 21:37:54 +0100
From: MonetDB Mercurial Repository <>

Changeset 9ddf37267b1c 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=9ddf37267b1c

Changeset description:

fixes for bugs 6516 and 6517, improved type checking in the 'IN/NOT IN' cases

Comment 26102

Date: 2018-01-18 21:38:12 +0100
From: @njnes

fixed type checking

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