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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #3084 - Implement missing tests #3117

Merged
merged 18 commits into from Mar 4, 2022
Merged

Conversation

pmbrull
Copy link
Collaborator

@pmbrull pmbrull commented Mar 3, 2022

Describe your changes :

Fixes #3084, among other small tunings. I'll open new issues for the rest of the validations, but this was getting big already.

  • Implemented columnCount metric and its validation, among other straightforward validations.
  • Updated the type on the JSON Schema for ColumnValuesToBeNotInSet. The idea is that we need a list of whatever, not a Dict.
  • Now we are passing session and the ORM table to the validate call. This is interesting as it allows validation implementations to prepare and run their own metrics. This is required for metrics that have input parameters, such as a set of values for ColumnValuesToBeNotInSet. In this scenario, we cannot reuse any profiler metric, but rather we need some one-shot specific implementation for each column the test is configured. It is a small change and opens the door for more complicated testing
  • Fixed the concat function implementation for Redshift
  • Added a better exception and rollback handling on errors computing metrics.
  • Deleted the gitbook publish CI

Thanks, happy to discuss 馃檹

Type of change :

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Frontend Preview (Screenshots) :

For frontend related change, please link screenshots of your changes preview! Optional for backend related changes.

Checklist:

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my own.
  • I have tagged my reviewers below.
  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • All new and existing tests passed.

Reviewers

@github-actions
Copy link

github-actions bot commented Mar 3, 2022

Schema Change Detected. Needs ingestion-core version bump

Please run make core_bump_version_dev in the project's root and commit the changes to _version.py in this PR. Please ignore if this has been handled already.

@pmbrull pmbrull requested a review from harshach March 3, 2022 18:15
@sonarcloud
Copy link

sonarcloud bot commented Mar 3, 2022

[open-metadata-ingestion] Kudos, SonarCloud Quality Gate passed!聽 聽 Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@pmbrull
Copy link
Collaborator Author

pmbrull commented Mar 3, 2022

Maven CI test is unrelated

@sonarcloud
Copy link

sonarcloud bot commented Mar 3, 2022

[catalog] Kudos, SonarCloud Quality Gate passed!聽 聽 Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

96.4% 96.4% Coverage
0.0% 0.0% Duplication

@pmbrull pmbrull merged commit e96ac83 into open-metadata:main Mar 4, 2022
@pmbrull pmbrull deleted the issue-3084 branch March 4, 2022 05:59
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.

Implement missing tests
2 participants