Kevin Grismore
11/01/2022, 9:24 PMUpsert Records
If a primary key identifier is defined in the source, an upsert will be performed using the primary key value as the elasticsearch doc id. Does not support composite primary keys.The source for my connection is BigQuery, which doesn't have primary keys. Instead I construct a surrogate key field called
id
. However, I can't select a primary key in the connection because the ElasticSearch destination doesn't support Incremental Sync - Deduped History
.Kevin Grismore
11/01/2022, 9:49 PMuser
11/02/2022, 1:58 PMKevin Grismore
11/02/2022, 2:36 PMFull Refresh - Overwrite
mode, the primary key is properly picked up and used as the document _id
in ElasticSearch. My only suggestion here would be to clarify the requirements for enabling the Upsert in the documentation - that if your source system doesn't have primary keys, you should set one yourself in the connection's configuration.yml, as it is not possible in the UI. Full Refresh - Overwrite
mode is also required.user
11/02/2022, 3:13 PMSantos
10/16/2023, 3:54 AM