Skip to content

Conversation

@mihaibudiu
Copy link
Contributor

@mihaibudiu mihaibudiu commented Jan 20, 2026

Fixes #5479

The implementation of EXCEPT ALL or INTERSECTION ALL is incorrect, so I just documented these as unimplemented until we fix this problem.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an operator insertion bug in the SQL→DBSP compilation of MINUS by ensuring the negation operator is added to the circuit before downstream casting, and adds regression coverage for MINUS / MINUS ALL.

Changes:

  • Fix visitMinus operator construction order so DBSPNegateOperator is added before castOutput(...) can wrap it.
  • Add regression tests compiling MINUS and MINUS ALL cases that previously lacked coverage.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
sql-to-dbsp-compiler/SQL-compiler/src/main/java/org/dbsp/sqlCompiler/compiler/frontend/CalciteToDBSPCompiler.java Ensures the negate operator is inserted into the circuit before being used as an input to a generated cast/map operator during MINUS compilation.
sql-to-dbsp-compiler/SQL-compiler/src/test/java/org/dbsp/sqlCompiler/compiler/sql/simple/Regression2Tests.java Adds regression tests that compile MINUS / MINUS ALL, covering cases not previously exercised by tests.

@mihaibudiu mihaibudiu disabled auto-merge January 20, 2026 23:25
@mihaibudiu mihaibudiu force-pushed the issue5479 branch 2 times, most recently from 2e024fd to 0214a45 Compare January 20, 2026 23:31
Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
@mihaibudiu mihaibudiu added this pull request to the merge queue Jan 21, 2026
Merged via the queue into main with commit 2b550b8 Jan 21, 2026
1 check passed
@mihaibudiu mihaibudiu deleted the issue5479 branch January 21, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SQL] EXCEPT(ALL) and MINUS(all) with queries that include ARRAY/MAP fail compilation

3 participants