From the course: Data Quality Testing with Great Expectations
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Creating a GX data context - Great Expectations Tutorial
From the course: Data Quality Testing with Great Expectations
Creating a GX data context
Let's start our deep dive into Gx by looking at one of its core concepts, the data context. A data context defines the storage location for any kind of metadata about our project, such as the configurations for data sources, the expectations that we write, checkpoints, and so on. It's also where all validation results are stored. Any code that uses GxCore needs to start with the creation of a data context. are two different types of data context that we can use. First, we can use an ephemeral data context. This is a temporary data context that stores all metadata and configurations in memory. We typically use an ephemeral data context when we just want to do a quick ad hoc data exploration or when we don't have permissions to write to the file system. Second, we can use a file data context. As the name says, a file data context source all metadata about our project in actual files, specifically YAML files. That means a file data context is persistent. Typically, a file data context is…