Skip to content

Commit 139d3e1

Browse files
committed
minor edits in UID2 Snowflake docs, for consistency
1 parent 8eee314 commit 139d3e1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/guides/integration-snowflake.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ The following sections include query examples for each solution, which are ident
122122
```
123123
{DATABASE_NAME}.{SCHEMA_NAME}
124124
```
125+
125126
For example:
127+
126128
```sql
127129
select UID, BUCKET_ID, UNMAPPED from table({DATABASE_NAME}.{SCHEMA_NAME}.FN_T_IDENTITY_MAP('[email protected]', 'email'));
128130
```
@@ -152,7 +154,7 @@ A successful query returns the following information for the specified DII.
152154
| Column Name | Data Type | Description |
153155
|:------------|:----------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
154156
| `UID` | TEXT | The value is one of the following:<ul><li>DII was successfully mapped: The UID2 associated with the DII.</li><li>DII was not successfully mapped: `NULL`.</li></ul> |
155-
| `BUCKET_ID` | TEXT | The value is one of the following:<ul><li>DII was successfully mapped: The ID of the salt bucket used to generate the UID2. This ID maps to the bucket ID in the `SALT_BUCKETS` view.</li><li>DII was not successfully mapped: `NULL`.</li></ul> |
157+
| `BUCKET_ID` | TEXT | The value is one of the following:<ul><li>DII was successfully mapped: The ID of the <Link href="../ref-info/glossary-uid#gl-salt-bucket">salt bucket</Link> used to generate the UID2. This ID maps to the bucket ID in the `SALT_BUCKETS` view.</li><li>DII was not successfully mapped: `NULL`.</li></ul> |
156158
| `UNMAPPED` | TEXT | The value is one of the following:<ul><li>DII was successfully mapped: `NULL`.</li><li>DII was not successfully mapped: The reason why the identifier was not mapped: `OPTOUT`, `INVALID IDENTIFIER`, or `INVALID INPUT TYPE`.<br/>For details, see [Values for the UNMAPPED Column](#values-for-the-unmapped-column).</li></ul> |
157159

158160
#### Values for the UNMAPPED Column
@@ -387,13 +389,13 @@ select * from AUDIENCE_WITH_UID2;
387389
+----+----------------------+----------------------------------------------+------------+-------------------------+
388390
```
389391

390-
To find missing or outdated UID2s, use the following query example, which uses the [default database and schema names](#database-and-schema-names):
392+
To find missing or outdated UID2s, use the following query example, which uses the [default database and schema names](#database-and-schema-names).
391393

392394
```sql
393395
select a.*, b.LAST_SALT_UPDATE_UTC
394-
from AUDIENCE_WITH_UID2 a LEFT OUTER JOIN UID2_PROD_UID_SH.UID.SALT_BUCKETS b
395-
on a.BUCKET_ID=b.BUCKET_ID
396-
where a.LAST_UID2_UPDATE_UTC < b.LAST_SALT_UPDATE_UTC or a.UID2 IS NULL;
396+
from AUDIENCE_WITH_UID2 a LEFT OUTER JOIN UID2_PROD_UID_SH.UID.SALT_BUCKETS b
397+
on a.BUCKET_ID=b.BUCKET_ID
398+
where a.LAST_UID2_UPDATE_UTC < b.LAST_SALT_UPDATE_UTC or a.UID2 IS NULL;
397399
```
398400

399401
Query results:
@@ -694,4 +696,4 @@ select UID2, SITE_ID, DECRYPTION_STATUS from table({DATABASE_NAME}.{SCHEMA_NAME}
694696
After:
695697
```sql
696698
select UID, SITE_ID, DECRYPTION_STATUS from table({DATABASE_NAME}.{SCHEMA_NAME}.FN_T_DECRYPT('A41234<rest of token>'));
697-
```
699+
```

0 commit comments

Comments
 (0)