The Detect Changes transformation component lets you identify the differences between two datasets. Use this component to compare two separate tables that contain similar data, and then insert a new column that indicates whether the data in each row has been inserted, deleted, changed, or left unchanged. Any rows with key columns that contain NULL values will be ignored. NULL comparison values are considered equal.Documentation Index
Fetch the complete documentation index at: https://docs.maia.ai/llms.txt
Use this file to discover all available pages before exploring further.
Use case
This component can be used to keep your data up-to-date efficiently, without needing to reload all your data repeatedly. For example, you can use it to:- Track changes to financial or healthcare data for compliance reasons.
- Identify rows that have been changed, making it easier to see only the most recent updates.
Properties
A human-readable name for the component.
Select a master table from the two inputs. This table is the one treated as default in the comparison with the second table.
Select the key columns to join the two tables on. These columns must appear in both tables. NULL values are ignored.
Select the columns that will be checked for changes. Just like the keys, these columns must appear in both tables; however, the two lists shouldn’t overlap.
- Input Column: Select input columns to map to output names. Defaults are provided automatically but can be changed.
- Output Column: Name each output columns that the input columns will map to.
Enter a name for the new column in the output. By default, this column is named “Indicator”. This column contains an indicator that shows the status of each record:
- C the record has been changed.
- D the record has been deleted.
- I the record is identical.
- N the record is new.
Indicators
Indicators are single-letter codes that indicate what the state of a row is regarding Detect Changes. The following indicators are used:- C Changed: the record is present in both tables, with different values, but with the same ID.
- D Deleted: the record is present in the master table, but not in the second table.
- I Identical: the same record is present in both tables with no changes.
- N New: the record isn’t present in the master table, but is present in the second table.
