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

MultiColumn Value Constraints #413

Merged
merged 31 commits into from
Jan 26, 2022

Conversation

MilenaTrajanoska
Copy link
Contributor

Description

column_values_A_greater_than_B_constraint
column_values_A_greater_than_equal_B_constraint
column_values_A_less_than_B_constraint
column_values_A_less_than_equal_B_constraint
column_values_A_equal_B_constraint
column_values_A_not_equal_B_constraint
sumOfRowValuesOfMultipleColumnsEqualsConstraint
columnPairValuesInSetConstraint
columnValuesUniqueWithinRow

General Checklist

  • Tests added for this feature/bug
    if it was a bug, test must cover it.
  • Conform by the style guides, by using formatter
  • Documentation updated
  • (optional) Please add a label to your PR

MilenaTrajanoska and others added 17 commits January 11, 2022 14:12
…nt and MultiColumnValueConstraints. Change the way of tracking the dataframe at DatasetProfile. Constraint for column_values_A_greater_than_B and simple test for it.
…f and to_protobuf of MCVC, change OP CONTAINS_SET to CONTAIN_SET. Constraint functions for all the logical operations between two columns.
Copy link
Contributor

@jamie256 jamie256 left a comment

Choose a reason for hiding this comment

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

I think there are other PRs your have before this one, but when ready, please target mainline so it is easier to review (and becomes a mergeable PR).

@MilenaTrajanoska MilenaTrajanoska changed the base branch from dev/loka/constraints to mainline January 20, 2022 10:44
# Conflicts:
#	proto/src/constraints.proto
#	src/whylogs/core/datasetprofile.py
#	src/whylogs/core/statistics/constraints.py
#	tests/unit/core/statistics/test_constraints.py
@coveralls
Copy link

coveralls commented Jan 20, 2022

Pull Request Test Coverage Report for Build 1747299641

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 176 of 192 (91.67%) changed or added relevant lines in 4 files are covered.
  • 98 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.07%) to 81.819%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/whylogs/core/columnprofile.py 11 12 91.67%
src/whylogs/core/statistics/constraints.py 154 169 91.12%
Files with Coverage Reduction New Missed Lines %
src/whylogs/core/datasetprofile.py 1 85.87%
src/whylogs/proto/constraints_pb2.py 25 65.09%
src/whylogs/core/statistics/constraints.py 72 83.96%
Totals Coverage Status
Change from base Build 1747215315: -0.07%
Covered Lines: 4501
Relevant Lines: 5361

💛 - Coveralls

src/whylogs/core/columnprofile.py Outdated Show resolved Hide resolved
# Conflicts:
#	src/whylogs/core/statistics/constraints.py
#	tests/unit/core/statistics/test_constraints.py
# Conflicts:
#	proto/src/constraints.proto
#	src/whylogs/core/statistics/constraints.py
#	tests/unit/core/statistics/test_constraints.py
@jamie256 jamie256 merged commit 4271ed9 into mainline Jan 26, 2022
@jamie256 jamie256 deleted the dev/loka/multi_column_value_constraints branch January 26, 2022 18:34
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.

None yet

4 participants