Skip to content

feat(sql): plan MINUS as EXCEPT - #81

Merged
osipovartem merged 1 commit into
embucket-sync-df55.0.0from
snowflake-minus-set-operator
Sep 12, 2026
Merged

osipovartem merged 1 commit into
embucket-sync-df55.0.0from
snowflake-minus-set-operator

Conversation

@osipovartem

Copy link
Copy Markdown
Collaborator

Summary

  • plan the SQL MINUS set operator through the existing EXCEPT logical plan
  • support the same quantifiers already accepted by the parser
  • add a Snowflake-dialect integration test that protects the resulting anti-join plan

Performance

This is a planner alias only. MINUS reuses the existing vectorized EXCEPT physical path and introduces no new operator or per-row conversion.

Validation

  • cargo +1.95.0 test -p datafusion-sql --test sql_integration (600 passed)
  • cargo +1.95.0 clippy -p datafusion-sql --all-targets -- -D warnings
  • cargo +1.95.0 fmt --all -- --check
  • git diff --check

@github-actions github-actions Bot added the sql label Sep 12, 2026
@osipovartem
osipovartem merged commit 4adf876 into embucket-sync-df55.0.0 Sep 12, 2026
17 of 19 checks passed
@osipovartem
osipovartem deleted the snowflake-minus-set-operator branch September 12, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant