Skip to content

fix(yaml): duplicate datasource names #147

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

Merged
merged 1 commit into from
Nov 29, 2023
Merged

fix(yaml): duplicate datasource names #147

merged 1 commit into from
Nov 29, 2023

Conversation

Anu-Ra-g
Copy link
Contributor

@Anu-Ra-g Anu-Ra-g commented Nov 28, 2023

Fixes/Implements #105

Description

Fixed the bug where duplicate datasource names were not detected. This update generates an error and shows the names of the duplicate datasources

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Locally Tested
  • Needs Testing From Production

@Anu-Ra-g Anu-Ra-g requested a review from datageek00 November 28, 2023 07:07
@Anu-Ra-g Anu-Ra-g changed the title fixed duplicate datasource names bug fix(yaml): duplicate datasource names Nov 29, 2023
@@ -51,6 +51,17 @@
def parse_data_source_yaml_configurations(
data_source_yaml_configurations: List[Dict],
) -> Dict[str, DataSourceConfiguration]:
data_sources_names = []
duplicate_names = []
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove duplicate names

@WeryZebra-Yue WeryZebra-Yue merged commit 204c36d into datachecks:main Nov 29, 2023
@WeryZebra-Yue WeryZebra-Yue linked an issue Nov 30, 2023 that may be closed by this pull request
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.

fix: duplicate datasource name should throw error
2 participants