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
{{ message }}
Repository navigation
INTERSECT ALL and EXCEPT ALL are parse errors #2801
INTERSECT ALL and EXCEPT ALL are parse errors. UNION ALL, INTERSECT and EXCEPT work.
Seen in the NIST SQL Test Suite run: 8 checks in dml164.sql and yts762.sql. Reproduced on develop (38bf3c3):
alasql('CREATE TABLE a (x INT)');alasql('INSERT INTO a VALUES (1), (1), (1), (2)');alasql('CREATE TABLE b (x INT)');alasql('INSERT INTO b VALUES (1), (1), (3)');alasql('SELECT x FROM a INTERSECT ALL SELECT x FROM b');// Parse erroralasql('SELECT x FROM a EXCEPT ALL SELECT x FROM b');// Parse error
Expected: INTERSECT ALL keeps each row as often as it appears in both, so 1, 1. EXCEPT ALL subtracts the counts, so 1, 2.
Activity
mateuscmtropical commentedon Nov 11, 2026
Hi, I'd like to work on this one.
mateuscmtropical commentedon Nov 11, 2026
Hi, I've opened a PR for this: #3027