Manage Expectations
An Expectation is a verifiable assertion about your data. They make implicit assumptions about your data explicit, and they provide a flexible, declarative language for describing expected behavior. They can help you better understand your data and help you improve data quality.
To learn more about Expectations, see Expectation.
Prerequisites
-
You have set up your environment and the GX Agent is running.
-
You have a Data Asset.
Create an Expectation
-
In GX Cloud, click Data Assets.
-
In the Data Assets list, click the Data Asset name.
-
Click the Expectations tab.
-
Click New Expectation.
-
Select an Expectation type, enter the column name, and then complete the optional fields.
If you prefer to work in a code editor, or you want to configure an Expectation from the Expectations Gallery, click the JSON Editor tab and define your Expectation parameters in the code pane.
-
Click Save.
-
Optional. Repeat steps 1 to 4 to add additional Expectations.
-
Optional. Run a Validation. See Run a Validation.
Edit an Expectation
-
In GX Cloud, click Data Assets.
-
In the Data Assets list, click the Data Asset name.
-
Click the Expectations tab.
-
Click Edit Expectations for the Expectation that you want to edit.
-
Edit the Expectation configuration.
If you prefer to work in a code editor, or you configured an Expectation from the Expectations Gallery, click the JSON Editor tab and edit the Expectation parameters in the code pane.
-
Click Save.
Delete an Expectation
-
In GX Cloud, click Data Assets.
-
In the Data Assets list, click the Data Asset name.
-
Click the Expectations tab.
-
Click Delete Expectation for the Expectation you want to delete.
-
Click Yes, delete Expectation.