The Cloud Dataprep application enables you to easily move between steps in your transform recipe so that you can check the state of your dataset at any point during the transformation. In some cases, you may want to be able to track the changes made to an individual column side-by-side with the original column. This section provides a generalized approach for tracking column changes in this manner.
NOTE: Use this workflow only if it is important to monitor which values have changed in a column. For most use cases, the Transformer page provides sufficient visibility over your sample data to manage column values.
In the following sequence, the original column is called
String. For numeric columns, you can perform more detailed analysis between original and modified column values.
After you have completed your general setup steps of your transform, create a copy of the original column:
derive value:String as:'String_orig'
- You now have a copy of the original column before any manipulations were applied to it.
Add any transforms to your recipe, including any that change the values of
String. In the example below, the following transform has been applied:
set col:String value:TRIM(String)
At the point in your recipe where you would like to test the column for changes, insert the following:
derive value:(String != String_orig) as:'String_changes'
String_changescolumn now contains
truevalues where the values in
Stringhave been changed from their original values (
- Before you run your recipe, you may want to remove the tracking columns that you generated (
String_changesin our example).
Figure: Example tracking column changes