DataHub Great Expectations (GX) Plugin
Send Great Expectations data quality results into DataHub — surface assertion outcomes alongside your dataset metadata so teams can see data health at a glance.
What you can do
- Emit assertion results from GX Checkpoints directly into DataHub as data quality assertions
- Link quality checks to datasets — results appear on the dataset's profile in DataHub
- Track pass/fail history over time for every expectation suite
- Works with any DataHub deployment — self-hosted or DataHub Cloud
Compatibility
| GX version | Module |
|---|---|
| 0.17.x / 0.18.x | datahub_gx_plugin.action.DataHubValidationAction |
| 1.x | datahub_gx_plugin.action_v1.DataHubValidationAction |
Both APIs are supported additively in the same package. Use the module that matches your installed GX major version.
Installation
pip install acryl-datahub-gx-plugin
Quickstart (GX 0.17 / 0.18)
Add the DataHub action to your GX Checkpoint:
from datahub_gx_plugin.action import DataHubValidationAction
from great_expectations.checkpoint import Checkpoint
checkpoint = Checkpoint(
name="my_checkpoint",
data_context=context,
action_list=[
{
"name": "datahub",
"action": {
"class_name": "DataHubValidationAction",
"module_name": "datahub_gx_plugin.action",
"server_url": "http://localhost:8080",
},
}
],
)
Quickstart (GX Core 1.x)
import great_expectations as gx
from datahub_gx_plugin.action_v1 import DataHubValidationAction
context = gx.get_context()
# ... create validation_definitions ...
checkpoint = context.checkpoints.add(
gx.Checkpoint(
name="my_checkpoint",
validation_definitions=validation_definitions,
actions=[
DataHubValidationAction(
name="datahub",
server_url="http://localhost:8080",
# Optional when batch_spec meta is incomplete:
# platform="postgres",
# dataset_name="public.my_table",
)
],
)
)
checkpoint.run()
Results from every Checkpoint run will appear in DataHub under the dataset's Validation tab.
Links
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file acryl_datahub_gx_plugin-1.7.0.3.tar.gz.
File metadata
- Download URL: acryl_datahub_gx_plugin-1.7.0.3.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26068b6ce716261a31e75f5176f0531ae53990f06c205c106064571318e4b23b
|
|
| MD5 |
c105658613c34c18465a0a256993d674
|
|
| BLAKE2b-256 |
1cbcbb427a906923381fe69593e97041bf43288ab4f101f16f48e96bfc0d5743
|
File details
Details for the file acryl_datahub_gx_plugin-1.7.0.3-py3-none-any.whl.
File metadata
- Download URL: acryl_datahub_gx_plugin-1.7.0.3-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dbf608ff4e0653f625e8d940af5c3d5825aca658a8773dcc1fea47b3fca7d47
|
|
| MD5 |
5772f44e8bff04c34d9d494c21894622
|
|
| BLAKE2b-256 |
97e3e60b87549b1578dda2c84cd5456bc8dd4c33799c1ddeaba9a317ae13f7f4
|