Pre-release
This release is a pre-release and may not be stable for production use.
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
Metadata
Release files for acryl-datahub-gx-plugin 1.7.0.10rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| acryl_datahub_gx_plugin-1.7.0.10rc1.tar.gz | 19.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| acryl_datahub_gx_plugin-1.7.0.10rc1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.6 kB
Release files / acryl_datahub_gx_plugin-1.7.0.10rc1.tar.gz
| Download URL | acryl_datahub_gx_plugin-1.7.0.10rc1.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
497c24585dfe0df6ff2d9aef4ee2cee7850d4b3ff351c7ee381e5577e41a894f
|
|
BLAKE2b-256 checksum How to use checksums |
caca2d6dd1b5e3e645ff3cd65017557be5913979b1bf47625979257d38050f83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.21
|
Release files / acryl_datahub_gx_plugin-1.7.0.10rc1-py3-none-any.whl
| Download URL | acryl_datahub_gx_plugin-1.7.0.10rc1-py3-none-any.whl |
|---|---|
| Size | 20.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9c368ba877ed6e22b34f5949e5a998a1f58f627ae2abdc8aec47208d1906c62
|
|
BLAKE2b-256 checksum How to use checksums |
5d6e08991cc3e293da185ef2121d968366d69aa524a7856885f684a5527584af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.21
|