Skip to content

fix(yaml): duplicate datasource names#147

Merged
WeryZebra-Yue merged 1 commit intodatachecks:mainfrom
Anu-Ra-g:duplicate_names_patch
Nov 29, 2023
Merged

fix(yaml): duplicate datasource names#147
WeryZebra-Yue merged 1 commit intodatachecks:mainfrom
Anu-Ra-g:duplicate_names_patch

Conversation

@Anu-Ra-g
Copy link
Copy Markdown
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
Comment thread datachecks/core/configuration/configuration_parser.py
data_source_yaml_configurations: List[Dict],
) -> Dict[str, DataSourceConfiguration]:
data_sources_names = []
duplicate_names = []
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove duplicate names

Comment thread datachecks/core/configuration/configuration_parser.py Outdated
@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