Great Expectations Documentation

website·Indexed 39 days ago

https://docs.greatexpectations.io/docs/

Documentation for Great Expectations (GX), a tool for validating and documenting data. Includes guides on creating Data Contexts, configuring credentials, and connecting to SQL, Spark, and cloud storage data sources. Provides API references for ExpectationSuites, ValidationDefinitions, and various datasource classes for versions 0.18 and 1.23.1.

Tokens
246.7K
Snippets
1.3K
Records
1.9K
Agent score
68%

What's inside Great Expectations

  1. Overview of AbstractDataContext CRUD capabilities

    The great_expectations.data_context.AbstractDataContext class is the base class for all Data Contexts. It encapsulates store and core components and is primarily responsible for managing CRUD (Create, Read, Update, Delete) operations for core Great Expectations objects.

    Capabilities by object type:

    • Datasources, ExpectationSuites, Checkpoints, Profilers: Supports get, add, update, add_or_update, and delete.
    • Stores: Supports add and delete only.
  2. Overview of RegexBasedColumnMapExpectations

    RegexBasedColumnMapExpectations are a sub-type of ColumnMapExpectation used for regex-powered validation of a single column. They evaluate every row in a column against a regex pattern and calculate the percentage of positive matches. The Expectation is considered valid if this percentage meets a specified threshold (100% by default). This threshold is controlled via the mostly parameter, which accepts a float between 0 and 1.
  3. Overview of Great Expectations Checkpoints

    A Checkpoint is the primary mechanism for validating data in a production deployment. It acts as an abstraction that bundles the validation of one or more Batches of data against one or more Expectation Suites, and defines the Actions to be taken after validation (e.g., sending Slack notifications or updating Data Docs). Checkpoints are managed by a Data Context and their configurations are persisted as YAML files, making them reusable and version-controllable.
  4. Overview of MulticolumnMapExpectations

    MulticolumnMapExpectations are a specialized type of Expectation in Great Expectations (v0.18) used to verify row-wise relationships between a set of columns. They evaluate a yes/no question for each row across the specified columns and calculate the percentage of rows that meet the criteria. The data is considered valid if this percentage meets a defined threshold.
  5. Overview of Great Expectations Agent Skills

    GX bundles 'agent skills'—packaged guidance files that AI coding agents (Claude Code, Codex, and Cursor) read to operate the GX public Python API. These skills allow users to describe data quality goals in plain language, which the agent then implements using the Python API. The result is a standard GX project and a script that can be run independently of the agent.
  6. Overview of FileDataAsset class

    The FileDataAsset class is the base class for PathDataAssets in Great Expectations. It is used to define data assets that create batches by applying regular expressions to file names.
    from great_expectations.datasource.fluent.data_asset.path.file_asset import FileDataAsset
    
    # Example instantiation
    asset = FileDataAsset(
        name="my_file_asset",
        type="CSV",
        connect_options={
            "path": "s3://my-bucket/data/"
        }
    )
  7. Overview of ColumnPairMapExpectations

    ColumnPairMapExpectations are a specialized sub-type of Expectation in Great Expectations (v0.18). They evaluate a row-wise relationship between a pair of columns to answer a yes/no question. The Expectation calculates the percentage of rows that satisfy the condition; if this percentage meets a specified threshold, the data is considered valid.
  8. Overview of Great Expectations for data validation

    Great Expectations is a tool for validating and documenting data, acting as 'unit tests for data'. It allows data engineering and science teams to assert expectations about data during ingestion or transformation to prevent quality issues from reaching data products. It converts these assertions into human-readable data documentation and quality reports.
  9. Overview of the GX Core data validation workflow

    GX Core is a Python library used to build programmatic data validation workflows. All GX workflows follow a consistent four-step pattern:

    1. Set up a GX environment: Initialize the Data Context.
    2. Connect to data: Define Data Sources, Data Assets, and Batch Definitions.
    3. Define Expectations: Create Expectations and organize them into Expectation Suites.
    4. Run Validations: Associate data with expectations via Validation Definitions and execute them using Checkpoints.
  10. Overview of GX Cloud for data quality

    GX Cloud is a data quality solution designed to provide comprehensive test coverage and proactive data quality monitoring. It allows teams to catch data issues before they impact downstream processes. Key capabilities include collaborative input from stakeholders, shared accessibility of results, and the ability to integrate into existing data pipelines via a rich API (supporting Python and Jupyter notebooks) and various orchestrators.