Skip to content

Refactor validation spec#153

Merged
khorshuheng merged 1 commit intofeast-dev:masterfrom
khorshuheng:refactor-validation-spec
Jun 27, 2022
Merged

Refactor validation spec#153
khorshuheng merged 1 commit intofeast-dev:masterfrom
khorshuheng:refactor-validation-spec

Conversation

@khorshuheng
Copy link
Copy Markdown
Collaborator

Signed-off-by: khorshuheng [email protected]

What this PR does / why we need it:
Refactor the validation spec such that the validation logic is encapsulated within the expectation class itself.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:


Copy link
Copy Markdown
Contributor

@keshav2211 keshav2211 left a comment

Choose a reason for hiding this comment

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

lgtm

def validate: Column
}

case class ExpectColumnValuesNotToBeNull(columnName: String) extends Expectation {
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.

nit: can we rename this class to exactly match with type expect_column_values_to_not_be_null
ExpectColumnValuesToNotBeNull
?

@feast-ci-bot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: keshav2211, khorshuheng

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: khorshuheng <[email protected]>
@khorshuheng khorshuheng force-pushed the refactor-validation-spec branch from 179711f to 57c16cf Compare June 21, 2022 09:56
@khorshuheng khorshuheng merged commit 66ace80 into feast-dev:master Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants