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

Support EXCEPT/INTERSECT Operators #18031

Closed
scsldb opened this issue Jun 15, 2020 · 1 comment · Fixed by #18459
Closed

Support EXCEPT/INTERSECT Operators #18031

scsldb opened this issue Jun 15, 2020 · 1 comment · Fixed by #18459
Assignees
Labels
feature/accepted This feature request is accepted by product managers help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/P0 The issue has P0 priority. sig/execution SIG execution type/feature-request Categorizes issue or PR as related to a new feature.
Milestone

Comments

@scsldb
Copy link

scsldb commented Jun 15, 2020

Description

Support EXCEPT/INTERSECT Operators, Returns distinct rows by comparing the results of two queries.

  • EXCEPT returns distinct rows from the left input query that aren't output by the right input query.
  • INTERSECT returns distinct rows that are output by both the left and right input queries operator.
  • To combine the result sets of two queries that use EXCEPT or INTERSECT, the basic rules are:
    • The number and the order of the columns must be the same in all queries.
    • The data types must be compatible

Category

Feature

Value

A common feature in analytics.

Time

GanttStart: 2020-07-03
GanttDue: 2020-07-24
GanttProgress: 90%

Progress Tracking

Project Link

@scsldb scsldb added type/feature-request Categorizes issue or PR as related to a new feature. priority/P0 The issue has P0 priority. labels Jun 15, 2020
@scsldb scsldb added this to the v5.0-alpha milestone Jun 15, 2020
@SunRunAway SunRunAway added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Jul 2, 2020
@SunRunAway SunRunAway added the sig/execution SIG execution label Jul 2, 2020
@zz-jason zz-jason changed the title Union operators: add minus(aka. except) and intersect support Support EXCEPT/INTERSECT Operators Jul 11, 2020
@lzmhhh123
Copy link
Contributor

The performance of null computing in ms sql-server:

mssql> create table t(a int);
OK

Executed in 0 ms
mssql> insert into t values(1),(2),(null),(3);
OK

Executed in 0 ms
mssql> select * from t intersect select null;
a
----
null

1 row(s) returned

Executed in 1 ms
mssql> select * from t except select null;
a
-
1
2
3

3 row(s) returned

@zz-jason zz-jason added the feature/accepted This feature request is accepted by product managers label Jul 29, 2020
@scsldb scsldb modified the milestones: v5.0.0-alpha, v5.0.0-rc Dec 14, 2020
@dveeden dveeden mentioned this issue Dec 5, 2023
70 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/accepted This feature request is accepted by product managers help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/P0 The issue has P0 priority. sig/execution SIG execution type/feature-request Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants