Skip to content

[Metadata - CompositeKeys] Validate that primary key columns are unique#2840

Open
pvk-developer wants to merge 4 commits intofeature/metadata-composite-keysfrom
issue-2825-validate-that-primary-key-columns-are-unique
Open

[Metadata - CompositeKeys] Validate that primary key columns are unique#2840
pvk-developer wants to merge 4 commits intofeature/metadata-composite-keysfrom
issue-2825-validate-that-primary-key-columns-are-unique

Conversation

@pvk-developer
Copy link
Member

Resolves #2825
CU-86b8n8h1h

@pvk-developer pvk-developer self-assigned this Mar 10, 2026
@sdv-team
Copy link
Contributor

@pvk-developer pvk-developer marked this pull request as ready for review March 10, 2026 15:59
@pvk-developer pvk-developer requested a review from a team as a code owner March 10, 2026 15:59
@pvk-developer pvk-developer requested review from fealho and sarahmish and removed request for a team March 10, 2026 15:59
@sdv-team
Copy link
Contributor

This Pull Request is not linked to an issue. To ensure our community is able to accurately track resolved issues, please link any issue that will be closed by this PR!

@sdv-team
Copy link
Contributor

This Pull Request is not linked to an issue. To ensure our community is able to accurately track resolved issues, please link any issue that will be closed by this PR!

@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.08%. Comparing base (868be4d) to head (8a7b3b1).

Additional details and impacted files
@@                       Coverage Diff                        @@
##           feature/metadata-composite-keys    #2840   +/-   ##
================================================================
  Coverage                            98.07%   98.08%           
================================================================
  Files                                   73       73           
  Lines                                 8278     8284    +6     
================================================================
+ Hits                                  8119     8125    +6     
  Misses                                 159      159           
Flag Coverage Δ
integration 75.62% <71.42%> (-0.01%) ⬇️
unit 97.09% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sdv-team
Copy link
Contributor

This Pull Request is not linked to an issue. To ensure our community is able to accurately track resolved issues, please link any issue that will be closed by this PR!

"""Test setting a composite key that has repeated columns multiple times."""
# Setup
instance = SingleTableMetadata()
instance.columns = {'column': {'sdtype': 'id'}, 'column_b': {'sdtype': 'id'}}
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add one more column ('column_c': {'sdtype': 'id'}) to make sure it doesn't appear in the duplicates list?

@pvk-developer pvk-developer requested a review from sarahmish March 11, 2026 14:26
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.

3 participants