5000, the next row will start at 5001. Once the pipeline run completes, the gem writes the last value used to the key file, so that the next run starts there.
Parameters
To configure the SurrogateKeyGenerator gem, add the gem to the canvas, link it to an upstream gem, and enter information for the following parameters:Example
This example adds a new surrogate key column (customer_sk) to a customer dimension DataFrame.
The example:
- Creates a new column called
customer_sk. - Looks for a file located at
/mnt/keys/customer_sk.seq - Starts key generation at
1.

