Skip to content

Conversation

@khorshuheng
Copy link
Collaborator

Signed-off-by: khorshuheng khor.heng@gojek.com

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
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
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
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 <khor.heng@gojek.com>
@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