You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Consider the test cases below. It is unexpected that the query return true, since there should be no row in VIEW with NULL as the WHERE predicate. If we remove the GROUP BY clause for the VIEW, the query returns empty result as expected.
To Reproduce
DROPTABLE t0 CASCADE;
DROPVIEW v0 CASCADE;
CREATETABLEt0(c0 INT);
INSERT INTO t0 ( c0) VALUES (false);
CREATEVIEWv0(c0) ASSELECT true FROM t0 WHERENULLGROUP BYt0.c0, true;
SELECT*FROM v0;
-- Expected: Empty -- Actual: true-- Or consider this one: SELECT*FROM v0 WHERE true; -- true (if the true is expected)SELECT*FROM v0 WHERE true UNION ALLSELECT*FROM v0 WHERE (NOT true); -- empty (unexpected)
Expected behavior
As mentioned above
Screenshots
N/A
Software versions
Build from source:
> docker exec monetdb-test mserver5 --version --dbname=monetdb
MonetDB 5 server 11.50.0 (hg id: 1a6a23b) (64-bit, 128-bit integers)
This is an unreleased version
Copyright (c) 1993 - July 2008 CWI
Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved
Visit https://www.monetdb.org/ for further information
Found 503.5GiB available memory, 128 available cpu cores
Libraries:
Compiled by: @fdb2b8a5a74e (x86_64-pc-linux-gnu)
Compilation: /usr/bin/cc
Linking : /usr/bin/ld
Issue labeling
Bug
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
fixed in dec2023, optimizer correctly removed all output of the groupby (no columns are used), execution plan incorrectly generated a output (allways), now the output (single values) is projected with the group result again (given the correct empty result).
Describe the bug
Consider the test cases below. It is unexpected that the query return
true
, since there should be no row inVIEW
withNULL
as theWHERE
predicate. If we remove theGROUP BY
clause for theVIEW
, the query returns empty result as expected.To Reproduce
Expected behavior
As mentioned above
Screenshots
N/A
Software versions
Build from source:
Issue labeling
Bug
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: