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

Dedupe entries when generating schema tables #5

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

loren
Copy link
Collaborator

@loren loren commented Dec 11, 2023

Something like this should only generate one table entry for EmailAddress:

               'emailDomains', (select array_agg(split_part(value, '@', 2))
                    from "EmailAddress" EA where "personId"="Person".id),
               'emailAddresses', (select array_agg(value) from "EmailAddress" EA where "personId"="Person".id),

Something like this should only generate one table entry for `EmailAddress`:
```
               'emailDomains', (select array_agg(split_part(value, '@', 2))
                    from "EmailAddress" EA where "personId"="Person".id),
               'emailAddresses', (select array_agg(value) from "EmailAddress" EA where "personId"="Person".id),
```
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (752171f) 95.06% compared to head (f179a80) 95.12%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #5      +/-   ##
==========================================
+ Coverage   95.06%   95.12%   +0.06%     
==========================================
  Files           8        8              
  Lines         243      246       +3     
==========================================
+ Hits          231      234       +3     
  Misses         12       12              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@loren loren merged commit 53ba0d0 into main Dec 11, 2023
6 checks passed
@loren loren deleted the dedupe_schema_table_names branch December 11, 2023 23:43
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