Why an open standard for data quality is important
Written by: Pere Miquel Brull and Teddy Crépineau

Written by: Pere Miquel Brull and Teddy Crépineau
Data is at the heart of every organization, whether it’s to improve business strategies and operations, product innovation, improve customer experience, or build new efficiencies, the role of data is becoming more and more important. Considering this new reality, driven and backed by data, an important question arises - **Can we trust the data? **Data Quality issues are plaguing organizations and preventing them from realizing the full potential of data.

From Data to Data Products
Data is becoming the end goal, not just the means with which to gain business insights. As a result, companies invest more resources to ensure that data is available, discoverable, and usable for all the teams. One key factor driving this trend is building Trust In Data.
Data-related teams should focus on finding insights, building solutions, or other productive activities rather than searching and validating data. Therefore, teams producing data are no longer just concentrating on gathering, but also testing data like any other piece of software. This new requirement brings the need for innovative solutions in the Data Quality and Testing space.
The Current Landscape
When there’s a lack of a clear winner for solving Data Quality issues in the market, one can usually observe two scenarios:
- Custom and in-house Solutions
- Third-party Solutions **Custom Solutions ** Many organizations build in-house solutions, as existing tools either don’t cover specific use cases or can’t easily be integrated within their current processes or architectures. These proprietary solutions need to constantly evolve to keep up with the growing needs and changing use cases and require a sizable investment in both people and resources.
Third-party Solutions Many tools exist today to solve data quality issues each focusing on a different set of problems. Given no tool is addressing the problem comprehensively, multiple tools are required by an organization to address its needs. These tools also have an overlapping feature set that creates confusion for the users. With a growing number of tools organizations are suffering from data architecture complexity.
In the current crop of Data Quality software, one solution stands out from the crowd by providing a framework for data contracts and a platform to enable and automate them - Great Expectations.
Metadata Standard for Data Quality
At OpenMetadata, we believe that Open Standards for metadata is a must to make metadata fuel innovation and for true interoperability in the metadata space. Data quality metadata lacks standard schemas to capture the quality tests and results. With standardized schemas, teams see the benefit of tool portability and choose the best one for the job freely. Also, the tests that are created in an organization can be freely exchanged and reused across teams.
Great Expectations has been doing an excellent job in defining Data Quality tests; thanks to the OpenSource community behind the project. Opening the doors to a community of users with different backgrounds, use cases, and degrees of experience brings in the richness of diversity. This can be seen by the comprehensive suite of data quality tests called Expectations, developed by the community.
This is a goal we share in the OpenMetadata community. Building a metadata standard is not something that a few can drive, which is why we are basing our Data Quality efforts on top of what Great Expectations brings to the table.
Data Quality Integration
Scattered tools and broken user workflows are one of the biggest blockers to unlocking the true potential of data. That’s why we are bringing the data profiling and validation information together with tables’ definitions, schemas, lineage, and ownership.
Providing users with an overall understanding of the different facets of a data asset, and how it interacts with the rest of the entities within a Data Platform, OpenMetadata is a one-stop solution for finding answers and fueling collaboration.
Porting Great Expectations’ test case definitions to the metadata standard as JSON Schemas has helped us build a robust and validated approach to data quality as part of our Ingestion Framework.
Moreover, following the API-centric design, any tests adhering to the standard can be collected with their results shown directly in the UI. In the upcoming releases, we are applying this thought aimed directly at Great Expectations, providing an action that will allow current GX users to push tests to OpenMetadata.
How to Ingest Great Expectations Test Results to OpenMetadata?
With the Actions feature, GX offers the ability to trigger actions after running your Expectations. OpenMetadata takes advantage of this feature to collect metadata generated by GX and centralize it with the other existing metadata helping users from both communities.
Here are the steps:
The steps below assume you have a running OpenMetadata instance and have created Expectations and checkpoint files in GX.
First, pip install our submodule containing the Great Expectations action.
pip install openmetadata-ingestion[great-expectations]
This command will download the latest version of openmetadata-ingestion. You need to make sure to download the same version as your running OpenMetadata server. For example, if you have OpenMetadata server 0.12.2 running, you will need to download openmetadata-ingestion version 0.12.2.x using the below command
pip install 'openmetadata-ingestion~=0.12.2.0[great-expectations]'
Next, configure the checkpoint file with the validator to run against your data. It is also where you will configure your custom actions that will be performed after the validation. You can find out more about checkpoints here.
[…]
action:
module_name: metadata.great_expectations.action
class_name: OpenMetadataValidationAction
config_file_path: path/to/ometa/config/file/
ometa_service_name: my_service_name
[…]
ometa_service_name is optional. If you don’t specify it, when looking for the table entity, it will look for the service name where the table entity name exists. If the same table entity name exists in more than one service name, it will raise an error.

To ingest GX results into OpenMetadata, you will need to specify your OpenMetadata security configuration for the REST endpoint. This configuration file needs to be located inside the config_file_path referenced in step 2 and named config.yaml.
hostPort: http://localhost:8585/api
authProvider: azure
apiVersion: v1
securityConfig:
clientSecret: {{ env('CLIENT_SECRET') }}
authority: my
clientId: 123
scopes:
- a
- b
You can use environment variables in your configuration file by simply using {{ env('<MY_ENV_VAR>') }}. These will be parsed and rendered at runtime allowing you to securely create your configuration and commit it to your favorite version control tool.
As we support multiple security configurations, you can check out the documentation page for more information on specific providers.

With everything set up, it is now time to run your checkpoint file.
great_expectations checkpoint run <my_checkpoint>

What’s Next?
As we strive to always provide the best user experience, we are working on providing generic test definitions. This feature will allow users to ingest all data quality tests supported by GX, DBT, or other data quality tools. Bringing test results from third-party tools in OpenMetadata will allow data consumers to have a 360 view of their data assets while accommodating existing infrastructure across teams.
We are also working on improving how data quality tests are displayed in the platform by providing a dedicated dashboard at the column level. With this feature, users will be able to quickly understand what type of data they are working on and also the quality of the data. With the historical view, it’ll be possible to understand the evolution of the data quality for a specific asset.
These next steps are focused on providing an improved user experience to increase trust and understanding of the data; ultimately reducing the time to gain crucial insights.

Comments
Join the discussionNo comments yet. Be the first to comment.




