Skip to main content

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.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for acryl-datahub-gx-plugin 1.7.0.9
File Size Uploaded
acryl_datahub_gx_plugin-1.7.0.9.tar.gz 19.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for acryl-datahub-gx-plugin 1.7.0.9
File Interpreter ABI Platform
acryl_datahub_gx_plugin-1.7.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 39.5 kB

Release files / acryl_datahub_gx_plugin-1.7.0.9.tar.gz

Download URL acryl_datahub_gx_plugin-1.7.0.9.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3457a60669893b549c939e465a36131236a225bb6f4db92292e2dbf694a6eeb4
BLAKE2b-256 checksum
How to use checksums
ce177fed996d552123489f2eeca085e0fee7b39d233367b4dc0b69d0bb215baf
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.9-py3-none-any.whl

Download URL acryl_datahub_gx_plugin-1.7.0.9-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97a619189d64a4310b34e71afad6a0d545a0719b53ddad6c6ab3126fde0eb3bf
BLAKE2b-256 checksum
How to use checksums
f2b1684d20acd06529b5916be978d9098d5215918875db18db16f57d24c6c03a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21

Release history Release notifications | RSS feed

15.0.4

2 release files

This release

1.7.0.9 This release

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.15.0

2 release files

0.14.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page