Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

return all duplicated rows #314

Merged
merged 1 commit into from
Nov 25, 2022
Merged

Conversation

pik94
Copy link
Contributor

@pik94 pik94 commented Nov 25, 2022

Return all duplicated rows in results.

Test tables:

DROP TABLE IF EXISTS test_table_1;
CREATE TABLE test_table_1 (
    c1 integer,
    c2 text
);

INSERT INTO test_table_1(c1,c2)
VALUES
    (12, 'ABCDE'),
    (12, 'ABCDE');

DROP TABLE IF EXISTS test_table_2;
CREATE TABLE test_table_2 (
    c1 integer,
    c2 text
);

INSERT INTO test_small_table_2(c1,c2)
VALUES
    (4,'ABCDEF'),
    (4,'ABCDE'),
    (4,'ABCDE'),
    (6,'ABCDE'),
    (6,'ABCDE'),
    (6,'ABCDE');

Result before patching:

- ('12', 'ABCDE')
+ ('4', 'ABCDEF')
+ ('4', 'ABCDE')
+ ('6', 'ABCDE')

Result after patching

- ('12', 'ABCDE')
- ('12', 'ABCDE')
+ ('4', 'ABCDEF')
+ ('4', 'ABCDE')
+ ('4', 'ABCDE')
+ ('6', 'ABCDE')
+ ('6', 'ABCDE')
+ ('6', 'ABCDE')

@pik94 pik94 self-assigned this Nov 25, 2022
@pik94 pik94 requested a review from erezsh November 25, 2022 09:16
@pik94 pik94 marked this pull request as ready for review November 25, 2022 09:16
erezsh added a commit that referenced this pull request Nov 25, 2022
erezsh added a commit that referenced this pull request Nov 25, 2022
@erezsh erezsh merged commit 3080dd0 into datafold:master Nov 25, 2022
@erezsh
Copy link
Contributor

erezsh commented Nov 25, 2022

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants