Skip to main content

convalesce-emit-gx

Forward Great Expectations validation results to Convalesce: every expectation's outcome, its counts and statistics, and the failing values Great Expectations sampled. One setting keeps the values where they are.

Install

pip install convalesce-emit-gx

Wire it up

One class path serves both majors. convalesce_emit_gx.action picks the implementation for the installed Great Expectations.

On 1.x, list the action on the checkpoint:

from great_expectations import Checkpoint
from convalesce_emit_gx.action import ConvalesceValidationAction

checkpoint = Checkpoint(
    name="orders",
    validation_definitions=[...],
    actions=[ConvalesceValidationAction()],
)

On 0.x, list it in the checkpoint's action list:

action_list=[
    {
        "name": "convalesce",
        "action": {
            "module_name": "convalesce_emit_gx.action",
            "class_name": "ConvalesceValidationAction",
        },
    }
]

Set CONVALESCE_INGEST_KEY where the checkpoint runs.

Validating outside a checkpoint

Great Expectations runs actions only from a checkpoint. ValidationDefinition.run(), Batch.validate() and a 0.x Validator.validate() fire nothing, so send their result yourself:

from convalesce_emit_gx import forward_validation_result

result = validation_definition.run()
forward_validation_result(result)

On 0.x, pass the validator too, forward_validation_result(result, validator=validator), so the platform is named from its engine.

Naming the table a checkpoint validates

A table or query asset is matched to its table in the catalogue from the datasource. A dataframe has no table that Great Expectations knows of, so name it on the action:

ConvalesceValidationAction(
    platform="postgres",
    dataset_name="my_db.my_schema.orders",
)

On 0.x the same fields go beside class_name in the action's entry:

"action": {
    "module_name": "convalesce_emit_gx.action",
    "class_name": "ConvalesceValidationAction",
    "platform": "postgres",
    "dataset_name": "my_db.my_schema.orders",
},
Field What it names
platform The platform the table lives on, as the catalogue names it: postgres, snowflake, bigquery.
dataset_name The table, as the catalogue names it: my_db.my_schema.orders. Every result of the checkpoint is filed under it, so set it on a checkpoint that validates one table.
platform_instance The instance of the platform, where your catalogue tells several apart.

Each is optional, and what is set applies to that checkpoint alone. forward_validation_result takes the same three as keyword arguments.

What crosses

  • Every field of the checkpoint result, each validation result and each expectation result, under every result format.
  • Each datasource's platform, database and default schema. Never its connection string; a password inside a batch spec is masked.
  • The query a query asset's batch is read with, up to 20,000 characters, so the tables and columns behind the batch can be read from it. Set CONVALESCE_SEND_SOURCE=false to keep it where it is.
  • Each result's GX Cloud page, when GX Cloud stored it.
  • The platform, dataset_name and platform_instance set on the action.

Row values

A validation result holds some of the values of the table it checked, and by default they are sent:

  • Failing sample values. For a check that fails row by row, Great Expectations keeps a sample of the values that failed, 20 by default, and how often each occurred (partial_unexpected_list, partial_unexpected_counts).
  • What a fuller result format adds. Under COMPLETE, every failing value and where its row is (unexpected_list, unexpected_index_list, unexpected_index_query). Where the result format asks for the failing rows themselves, those rows (unexpected_rows).
  • Observed column values and their counts. A distinct-values or most-common-value expectation reports the values it found in the column (observed_value), and on 0.x how many rows hold each (details.value_counts).

They are what tells an investigation which rows broke a check. The rows that passed, and the frame that was validated, stay where they are.

To send none of them, set this where the checkpoint runs:

CONVALESCE_GX_SEND_SAMPLES=false

Each value or list of values is then replaced by how many there were. Counts, percentages and numeric statistics (a mean, a maximum, a row count) are sent either way.

Settings

Set CONVALESCE_SEND_SETTINGS=true where your checkpoints run and each validation result also carries the environment variables of the process that ran it. It is off by default.

A setting whose name or value reads as a credential, and any value longer than 300 characters, is sent as a fingerprint: a keyed hash, sixteen hex characters long, made in your process. It says that the value changed between two runs and nothing of what the value is. Every other setting is sent as its value.

The hash is keyed with CONVALESCE_FINGERPRINT_KEY where you set one, and with a key derived from your ingest key otherwise. The fingerprint key is only ever read in your process and is never sent. keyed_by identifies the key the hashes were made under, so hashes are compared only between runs that used the same one.

Set CONVALESCE_SETTINGS_SKIP to a comma-separated list of names to keep those settings out in either form, such as CONVALESCE_SETTINGS_SKIP=HOSTNAME,INTERNAL_REGION.

The event then holds:

{
  "settings": {
    "items": [
      {"kind": "environment", "name": "API_KEY", "fingerprint": "5d1c0a9e7b3f2468"},
      {"kind": "environment", "name": "WAREHOUSE", "value": "analytics"}
    ],
    "keyed_by": "9f3b6c1d2e4a5b70"
  }
}

Supported

Great Expectations 0.17 through 1.x, on Python 3.9 and later. Verified on real installs: see version-support.md.

Configure

Read from the environment: see convalesce-emit.

Metadata

Release files for convalesce-emit-gx 0.3.0

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

Source distribution (sdist)

Source distribution for convalesce-emit-gx 0.3.0
File Size Uploaded
convalesce_emit_gx-0.3.0.tar.gz 44.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for convalesce-emit-gx 0.3.0
File Interpreter ABI Platform
convalesce_emit_gx-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 70.9 kB

Release files / convalesce_emit_gx-0.3.0.tar.gz

Download URL convalesce_emit_gx-0.3.0.tar.gz
Size 44.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c524ba5f0c5dfb7adcdbe114985d53f50d000a60487a82e83692901fc0baa893
BLAKE2b-256 checksum
How to use checksums
348496f086b77c1853120a4548ad1095ee995473a3d5f777298856daee7833b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / convalesce_emit_gx-0.3.0-py3-none-any.whl

Download URL convalesce_emit_gx-0.3.0-py3-none-any.whl
Size 26.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a209429890bc695c08834e3491b4716fa9cdc71f0c5537508d30b284fa005080
BLAKE2b-256 checksum
How to use checksums
6b2afbd9b4c1077bb94de836a0cd12be9ac2559137155e310435011b1de5de14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.0

2 release files

This release

0.3.0 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

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