This connector extracts technical metadata from Great Expectations using GX Core.
This connector runs by parsing existing Great Expectations run artifacts. To use this connector, make sure the execution context has been persisted. For example:
import great_expectations as gx
ctx = gx.get_context(mode="file", project_root_dir="SOME_DIR") # This works, the artifacts are persisted to `SOME_DIR`, the connector will parse it to get the validation results.
# ctx = gx.get_context() # XXX This does not work, it creates a context only in memory and nothing is persisted
Create a YAML config file based on the following template.
project_root_dir: <PROJECT_ROOT_DIR> # The project root directory. This is the directory that contains your Great Expectations artifacts, i.e. where the `gx` directory lives.
snowflake_account: <SNOWFLAKE_ACCOUNT> # The Snowflake account to use if the Great Expectations run was targeted at Snowflake.
See Output Config for more information.
Follow the Installation instructions to install metaphor-connectors
in your environment (or virtualenv).
Run the following command to test the connector locally:
metaphor great_expectations <config_file>
Manually verify the output after the command finishes.