Skip to content

Commit b6da488

Browse files
authored
Merge pull request #4657 from segmentio/lizkane222-patch-6
Add section to Frequently Asked Questions - Profiles Sync
2 parents e97c594 + bf36130 commit b6da488

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/unify/profiles-sync/sample-queries.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,8 @@ The following edge cases might drive slight (<0.01%) variation:
194194
- If you rebuild or use non-incremental materialization for `profile_traits`, Profiles Sync will fully calculate traits against a user. As a result, Profiles Sync would ensure that all traits reflect the most recently observed value for fully-merged users.
195195

196196
By contrast, Segment Unify and incrementally-built Profiles Sync materializations won’t combine already-computed traits across two merged profiles at the moment of merge. Instead, one profile’s traits will be chosen across the board.
197+
198+
#### What hash function is used for the external_id_hash field by Profiles Sync?
199+
200+
The `external_id_hash` is a hash of the `external_id_type` and `external_id_value` using SHA-1. This field corresponds to the `primary_key` for the table: `hash (external_id_type and external_id_value)`.
201+
For example, in BigQuery the logic is: `TO_HEX(SHA1(concat(external_id_type, external_id_value))) as seg_hash`.

0 commit comments

Comments
 (0)