Validate pipeline data with Great Expectations

domain: docs.greatexpectations.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install Great Expectations: pip install great_expectations; initialize a project with great_expectations init
  2. Connect a data source using the Python API or CLI, pointing to a pandas DataFrame, SQL table, or file source to get a Validator object
  3. Build an Expectation Suite by calling expectation methods on the Validator: validator.expect_column_values_to_not_be_null('user_id'); validator.expect_column_values_to_be_between('age', min_value=0, max_value=120); save the suite with validator.save_expectation_suite()
  4. Create a Checkpoint that bundles a Batch Request with an Expectation Suite: define the checkpoint in Python or YAML referencing the data asset and suite name
  5. Run the Checkpoint: checkpoint_result = checkpoint.run() — this validates the data and produces Validation Results
  6. Inspect results programmatically: checkpoint_result['success'] returns True if all expectations passed; integrate into a pipeline by raising an exception on failure

Known gotchas

Related routes

Integrate Great Expectations data quality checks into a data pipeline for automated validation and alerting
docs.greatexpectations.io · 6 steps · unrated
Enforce data quality in a Lakeflow Declarative Pipeline (formerly Delta Live Tables) using expectations
data-engineering · 6 steps · unrated
Great Expectations checkpoint validation
docs.greatexpectations.io · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans