Skip to content

Commit 5983e60

Browse files
authored
Clarification on SQL Traits ID restrictions (#2370)
1 parent 6366982 commit 5983e60

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/personas/sql-traits.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ If you are sending data from [object cloud sources](/docs/connections/sources/#c
152152

153153
When you're building your query, keep the following requirements in mind for the data your query returns.
154154

155-
- The query must return a column with a `user_id`, `email`, or `anonymous_id` (or `group_id` for account traits, if you have Personas for B2B enabled).
156-
- It must return at least one additional trait in addition to `user_id`/`group_id`, and no more than 25 total columns.
157-
- The query must not return any `user_id`s with a `null` value, or any duplicate `user_id`s.
155+
- The query must return a column with a `user_id`, `email`, or `anonymous_id` (or `group_id` for account traits, if you have Personas for B2B enabled). The query _cannot_ include values for both `user_id` and `anonymous_id`.
156+
- The query must return at least one trait in addition to `user_id`/`anonymous_id`/`email`/`group_id`, and no more than 25 total columns.
157+
- The query must not return any `user_id`s, `anonymous_id`s, or `group_id`s with a `null` value.
158+
- The query must not return any records with duplicate `user_id`s.
158159
- The query must not return more than 25 million rows.
159160
- Each record must be less than 16kb in size to adhere to [Segment's maximum request size](/docs/connections/sources/catalog/libraries/server/http-api/#max-request-size).
160161

0 commit comments

Comments
 (0)