-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CONTRIB] ExpectColumnValuesToBePresentInOtherTable - Interface Update #9165
[CONTRIB] ExpectColumnValuesToBePresentInOtherTable - Interface Update #9165
Conversation
✅ Deploy Preview for niobium-lead-7998 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Also, the `template_dict` parameter we would use for the Expectation on `order_table_1` and `order_table_2` would | ||
look like the following: | ||
|
||
"template_dict" = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleaned this up since we no longer need to use template_dict
query = """ | ||
SELECT COUNT(1) FROM ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting enough, this was the only change that was needed to retrieve the full set of unexpected values
"out": { | ||
"success": False, | ||
"result": { | ||
"observed_value": "2 missing valuess.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: typo in valuess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm; tks for the video demo
foreign_table: foreign table. | ||
primary_key_column_in_foreign_table: key column for primary key in foreign table. | ||
Args: | ||
foreign_key_column: foreign key-column of current table that we want to validate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: we prob don't need to hyphenate key-column
here since it's not hyphenated on line 56
Update to interface after review
template_dict
are now top-level parameters to Expectation.Validator
andExpectationRegistry
where we pass in the Expectation configuration whenever we load anexpectation_implementation()
. I believe this is very minor over-head for being able to enable this functionality, but I'd be happy to discuss._diagnostic_unexpected_table_renderer
, but only if the results actually have unexpected values.Successful validation without table
Unsuccessful validation with table
invoke lint
(usesblack
+ruff
)For more information about contributing, see Contribute.
After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!