On this Page
Table of Contents | ||||
---|---|---|---|---|
|
...
Snap Type: | Read | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: | This Snap provides the functionality of SCD (slowly changing dimension) Type 2 on a target Redshift table. The Snap executes one SQL lookup request per set of input documents to avoid making a request for every input record. Its output is typically a stream of documents for the Redshift - Bulk Upsert Snap, which updates or inserts rows into the target table. Therefore, this Snap must be connected to the Redshift - Bulk Upsert Snap to accomplish the complete SCD2 functionality. ETL Transformations and Data Flow This Snap enables the following ETL operations/flows:
Input & Output
Modes
| |||||||||||||||||||||||||||||||
Prerequisites: |
| |||||||||||||||||||||||||||||||
Limitations and Known Issues: | ||||||||||||||||||||||||||||||||
Configurations: | Account & Access This Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint. See Redshift Account for information on setting up this type of account. Views:
| |||||||||||||||||||||||||||||||
Settings | ||||||||||||||||||||||||||||||||
Label | Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline. | |||||||||||||||||||||||||||||||
Schema name | The name of the database schema that contains the table whose data you want to update. Selecting a schema filters the Table name list to only show tables created in the selected schema. If you do not specify a schema in the Schema name field, the Table name field lists out all tables with the name you specify in all schemas in the database. Default value: [None]
| |||||||||||||||||||||||||||||||
Table name | The name of the table that contains the data you want to update. Default value: [None]
| |||||||||||||||||||||||||||||||
Natural key | Required. Names of fields that identify a unique row in the target table. The identity key cannot be used as the Natural key, since a current row and its historical rows cannot have the same natural key value.
Default value: [None] | |||||||||||||||||||||||||||||||
Cause-historization fields | Required. Names of fields where any change in values causes the historization of an existing row and the insertion of a new 'current' row. Example: gold bullion rate Default value: [None] | |||||||||||||||||||||||||||||||
SCD Fields | Required. Enter the field names you want to use as dimension fields–or select them from the suggestion list. The columns in the table specified in the Table name field above are used to populate the suggestion list.
| |||||||||||||||||||||||||||||||
Ignore unchanged rows | Specifies whether the Snap must ignore writing unchanged rows from the source table to the target table. If you enable this option, the Snap generates a corresponding document in the target only if the Cause-historization column in the source row is changed. Else, the Snap does not generate any corresponding document in the target. Default value: Not selected | |||||||||||||||||||||||||||||||
|
|
...
Expand | ||
---|---|---|
| ||
Typical Snap Configurations |
Do it Yourself
...