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 set operation #979

Merged
merged 4 commits into from
Nov 18, 2024
Merged

support EXCEPT set operation #979

merged 4 commits into from
Nov 18, 2024

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Nov 18, 2024

No description provided.

Copy link
Contributor

Main PR
Total 42090 42090
Successful 14435 14450
Failures 27655 27640
Partial Successes1 4690 4689
Main PR
Successful 34.2956% 34.3312%
Failures 65.7044% 65.6688%

${\color{lightgreen}Progressions}$

copy

QUERY: select * from copytest except select * from copytest2;
QUERY: select * from copytest except select * from copytest2;

largeobject

QUERY: SELECT pageno, data FROM pg_largeobject WHERE loid = (SELECT loid from lotest_stash_values)
EXCEPT
SELECT pageno, data FROM pg_largeobject WHERE loid = 0;

misc

QUERY: SELECT * FROM onek EXCEPT ALL SELECT * FROM onek_copy;
QUERY: SELECT * FROM onek_copy EXCEPT ALL SELECT * FROM onek;

subselect

QUERY: select count(*) from
  onek o cross join lateral (
    select * from onek i1 where i1.unique1 = o.unique1
    except
    select * from onek i2 where i2.unique1 = o.unique2
  ) ss
where o.ten = 1;

union

QUERY: SELECT q2 FROM int8_tbl EXCEPT SELECT q1 FROM int8_tbl ORDER BY 1;
QUERY: SELECT q2 FROM int8_tbl EXCEPT ALL SELECT q1 FROM int8_tbl ORDER BY 1;
QUERY: SELECT q2 FROM int8_tbl EXCEPT ALL SELECT DISTINCT q1 FROM int8_tbl ORDER BY 1;
QUERY: SELECT q1 FROM int8_tbl EXCEPT SELECT q2 FROM int8_tbl ORDER BY 1;
QUERY: SELECT q1 FROM int8_tbl EXCEPT ALL SELECT q2 FROM int8_tbl ORDER BY 1;
QUERY: SELECT q1 FROM int8_tbl EXCEPT ALL SELECT DISTINCT q2 FROM int8_tbl ORDER BY 1;
QUERY: select unique1 from tenk1 except select unique2 from tenk1 where unique2 != 10;
QUERY: select unique1 from tenk1 except select unique2 from tenk1 where unique2 != 10;
QUERY: SELECT q1 FROM int8_tbl UNION ALL SELECT q2 FROM int8_tbl EXCEPT SELECT q1 FROM int8_tbl ORDER BY 1;
QUERY: SELECT q1,q2 FROM int8_tbl EXCEPT SELECT q2,q1 FROM int8_tbl
ORDER BY q2,q1;

${\color{lightgreen}Total Progressions: 16}$

Footnotes

  1. These are tests that we're marking as Successful, however they do not match the expected output in some way. This is due to small differences, such as different wording on the error messages, or the column names being incorrect while the data itself is correct.

Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

LGTM

@jycor jycor merged commit 165c30e into main Nov 18, 2024
13 checks passed
@jycor jycor deleted the james/except branch November 18, 2024 22:59
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.

2 participants