<@U06TM7M40RK> how to run Governance test?
To run a Governance test in DataHub, you need to set up and define a Metadata Test. However, it’s important to note that DataHub itself does not execute these tests directly. Instead, you define the conditions and rules for the test, and then use external tools to evaluate and publish the results back to DataHub.
-
Define Metadata Test: You can create a Metadata Test by navigating to Govern > Tests in DataHub. This involves selecting assets, defining rules, and optionally setting actions for assets that pass or fail the test. According to the <https://datahubproject.io/docs/0.14.0/tests/metadata-tests#step-2-defining-rules|DataHub documentation>, you can define complex governance policies using these tests.
-
Use External Tools: As per a <Slack conversation>, DataHub does not run assertions or tests directly. You would need to use external data tools like Great Expectations or dbt tests to evaluate the assertions and then publish the results to DataHub.
-
View Results: Once the tests are evaluated externally, you can view the results in DataHub. The results can be seen on an asset profile page inside the Validation tab or on the Metadata Tests management page, as mentioned in the <https://github.com/datahub-project/datahub/blob/master/docs/tests/metadata-tests.md|GitHub documentation>.
Would you like more detailed guidance on setting up a Metadata Test or using external tools for evaluation?
Sources:
- <https://datahubproject.io/docs/0.14.0/tests/metadata-tests#step-2-defining-rules|DataHub Metadata Tests Documentation>
- <Slack Conversation on Running Assertions>
- <https://github.com/datahub-project/datahub/blob/master/docs/tests/metadata-tests.md|GitHub Metadata Tests Documentation>
0 button
0 button
Hint: Mention @runllm in the thread for followups.
Hi <@U087CLF81J7>, how did my answer work out for you? Need any more assistance? You can also tag <@U07FV3UHE4D> to let your fellow community members know you’re still looking for guidance.
Hi ! Did this interaction resolve your issue or do you still require assistance ?
Please tag @ RunLLM if you still need further assistance !
Or tag @Datahub Community Support if you require a person to take a look
Hope this helps ! ><