Skip to main content
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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acryl_datahub_gx_plugin-1.6.0.17rc2.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acryl_datahub_gx_plugin-1.6.0.17rc2-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file acryl_datahub_gx_plugin-1.6.0.17rc2.tar.gz.

File metadata

File hashes

Hashes for acryl_datahub_gx_plugin-1.6.0.17rc2.tar.gz
Algorithm Hash digest
SHA256 ec77784d6e93bd7a506a20dc51b48f5e00f29dde7b7a7197562cebd5748c0c64
MD5 0c9870473bc65bd4767fcf4a27361842
BLAKE2b-256 a8e3e94cc85e6804ad04559b833e1f60d837d3fdeaff2561f3933e4a551a54d7

See more details on using hashes here.

File details

Details for the file acryl_datahub_gx_plugin-1.6.0.17rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for acryl_datahub_gx_plugin-1.6.0.17rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 908b307e0a37f4ba5bb61b033581cedea0b96729ab8d8c2691318ccd43520dfe
MD5 5ee2f35b70adc33083f44ec9808e7150
BLAKE2b-256 7b3d66e592ea3352b3235f3a3bd591b9d567794a595014a31867790bdb1058cc

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page