Add 3 extra columns to the Snowflake target table like operation, inserted date, and updated date.
Operation: what was the operation performed on a specific record? It will be updated with INSERT or UPDATE or DELETE
Inserted date: The inserted date should be the current time when the record was inserted the first time and it must be unchanged after that.
Updated date: The Updated date must be updated when the record got an update.
Problem encountered: Operation and Updated date transformations are working fine but the Inserted date is updating with 'NULL' value when there is an update on record.
Resolution:
Add emptyFieldAsNull internal parameter to the snowflake endpoint.
Create a Global transformation as below to create INSERT_DATETIME column.
Reload the task. Insert a record and update the same record to monitor the INSERT_DATETIME column value.