Skip to content

Commit f7f1870

Browse files
authored
added more options for partition key options
Added description when using a custom column as the partition key it must be of data type NVARCHAR(MAX).
1 parent 723d9a2 commit f7f1870

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

articles/stream-analytics/stream-analytics-custom-path-patterns-blob-storage-output.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Custom field or input attributes improve downstream data-processing and reportin
2121

2222
### Partition key options
2323

24-
The partition key, or column name, used to partition input data may contain alphanumeric characters with hyphens, underscores, and spaces. It is not possible to use nested fields as a partition key unless used in conjunction with aliases.
24+
The partition key, or column name, used to partition input data may contain alphanumeric characters with hyphens, underscores, and spaces. It is not possible to use nested fields as a partition key unless used in conjunction with aliases. The partition key must be NVARCHAR(MAX).
2525

2626
### Example
2727

@@ -53,10 +53,8 @@ Notice that each record in the blob has a **client_id** column matching the fold
5353
* cluster1/{date}/{aFieldInMyData}
5454
* cluster1/{time}/{aFieldInMyData}
5555
* cluster1/{aFieldInMyData}
56-
* cluster1/{date}/{time}/{aFieldInMyData}
57-
58-
Note:Partition keys must be NVARCHAR(MAX). When using custom column {aFieldInMyData} for partition key. It should be converted to NVARCHAR(MAX) in the query.
59-
56+
* cluster1/{date}/{time}/{aFieldInMyData}
57+
6058
2. Partition keys are case insensitive, so partition keys like "John" and "john" are equivalent. Also, expressions cannot be used as partition keys. For example, **{columnA + columnB}** does not work.
6159

6260
3. When an input stream consists of records with a partition key cardinality under 8000, the records will be appended to existing blobs and only create new blobs when necessary. If the cardinality is over 8000 there is no guarantee existing blobs will be written to and new blobs won't be created for an arbitrary number of records with the same partition key.

0 commit comments

Comments
 (0)