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

SQLancer distinct aggregate with error on group by constant #6897

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

SQLancer distinct aggregate with error on group by constant #6897

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

Comments

@monetdb-team
Copy link

Date: 2020-06-13 14:37:56 +0200
From: @PedroTadim
To: SQL devs <>
Version: 11.37.7 (Jun2020)

Last updated: 2020-07-27 09:30:11 +0200

Comment 27843

Date: 2020-06-13 14:37:56 +0200
From: @PedroTadim

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

Run the statements below.

Reproducible: Always

Steps to Reproduce:

CREATE TABLE "t0"("c0" DECIMAL(18,3), "c1" BIGINT);
COPY 12 RECORDS INTO "t0" FROM stdin USING DELIMITERS E'\t',E'\n','"';
0.244 NULL
0.578 NULL
0.119 NULL
0.773 495026350
0.329 2108706088
0.483 1298757529
0.880 39
0.084 1
0.332 859611948
0.607 NULL
0.835 0
0.455 -1239303309

SELECT MIN(DISTINCT t0.c1) FROM t0 WHERE 1 >= t0.c0 GROUP BY true;

Actual Results:

GDK reported error: BATgroupminmax: BATgroupmin: b and g must be aligned

Expected Results:

-1239303309

@monetdb-team monetdb-team added bug Something isn't working minor 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 minor SQL
Projects
None yet
Development

No branches or pull requests

2 participants