Skip to content

Commit 418ee61

Browse files
Merge pull request #2631 from MicrosoftDocs/main638838114519048752sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 8b38c7a + 7aac6b2 commit 418ee61

File tree

91 files changed

+397
-265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+397
-265
lines changed

data-explorer/kusto/query/bag-set-key-function.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Returns a `dynamic` property-bag with specified key-value pairs. If the input ba
3434
3535
## Examples
3636

37-
### Use a root-level key
37+
The following example demonstrates how to set a root-level key in a property bag.
3838

3939
:::moniker range="azure-data-explorer"
4040
> [!div class="nextstepaction"]
@@ -54,7 +54,8 @@ datatable(input: dynamic) [
5454
|{<br> "key1": 1,<br> "key2": 2<br>}|{<br> "key1": 1,<br> "key2": 2,<br> "key3": 3<br>}|
5555
|{<br> "key1": 1,<br> "key3": "abc"<br>}|{<br> "key1": 1,<br> "key3": 3<br>}|
5656

57-
### Use a JSONPath key
57+
The following example demonstrates how to set a JSONPath key in a property bag.
58+
5859

5960
:::moniker range="azure-data-explorer"
6061
> [!div class="nextstepaction"]

data-explorer/kusto/query/bag-unpack-plugin.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The `bag_unpack` plugin returns a table with as many records as its tabular inpu
6060
6161
## Examples
6262

63-
### Expand a bag
63+
The following example demonstrates how to expand a bag.
6464

6565
:::moniker range="azure-data-explorer"
6666
> [!div class="nextstepaction"]
@@ -85,9 +85,7 @@ datatable(d:dynamic)
8585
|40 |Dave |
8686
|30 |Jasmine|
8787

88-
### Expand a bag with OutputColumnPrefix
89-
90-
Expand a bag and use the `OutputColumnPrefix` option to produce column names that begin with the prefix 'Property_'.
88+
The following example demonstrates how to expand a bag and use the `OutputColumnPrefix` option to produce column names that begin with the prefix 'Property_'.
9189

9290
:::moniker range="azure-data-explorer"
9391
> [!div class="nextstepaction"]
@@ -112,9 +110,7 @@ datatable(d:dynamic)
112110
|40 |Dave |
113111
|30 |Jasmine |
114112

115-
### Expand a bag with columnsConflict
116-
117-
Expand a bag and use the `columnsConflict` option to resolve conflicts between existing columns and columns produced by the `bag_unpack()` operator.
113+
The following example demonstrates how to expand a bag and use the `columnsConflict` option to resolve conflicts between existing columns and columns produced by the `bag_unpack()` operator.
118114

119115
:::moniker range="azure-data-explorer"
120116
> [!div class="nextstepaction"]
@@ -162,9 +158,8 @@ datatable(Name:string, d:dynamic)
162158
|40 |Old_name |
163159
|30 |Old_name |
164160

165-
### Expand a bag with ignoredProperties
166161

167-
Expand a bag and use the `ignoredProperties` option to ignore certain properties in the property bag.
162+
The following example demonstrates how to expand a bag and use the `ignoredProperties` option to ignore certain properties in the property bag.
168163

169164
:::moniker range="azure-data-explorer"
170165
> [!div class="nextstepaction"]
@@ -190,9 +185,7 @@ datatable(d:dynamic)
190185
|Dave|
191186
|Jasmine|
192187

193-
### Expand a bag with a query-defined OutputSchema
194-
195-
Expand a bag and use the `OutputSchema` option to allow various optimizations to be evaluated before running the actual query.
188+
The following example demonstrates how to expand a bag and use the `OutputSchema` option to allow various optimizations to be evaluated before running the actual query.
196189

197190
:::moniker range="azure-data-explorer"
198191
> [!div class="nextstepaction"]
@@ -217,7 +210,7 @@ datatable(d:dynamic)
217210
|Dave | 40 |
218211
|Jasmine | 30 |
219212

220-
Expand a bag and use the `OutputSchema` option to allow various optimizations to be evaluated before running the actual query. Use a wildcard `*` to return all columns of the input table.
213+
The following example demonstrates how to expand a bag and use the `OutputSchema` option to allow various optimizations to be evaluated before running the actual query. Use a wildcard `*` to return all columns of the input table.
221214

222215
:::moniker range="azure-data-explorer"
223216
> [!div class="nextstepaction"]

data-explorer/kusto/query/bag-zip.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Returns a [dynamic](scalar-data-types/dynamic.md) property-bag.
3636

3737
## Examples
3838

39-
In the following example, the array of keys and the array of values are the same length and are zipped together into a dynamic property bag.
39+
The following example shows how to use `bag_zip()` to create a property-bag from two arrays. The first array contains the keys, and the second array contains the values. The resulting property-bag contains the keys and values zipped together.
4040

4141
:::moniker range="azure-data-explorer"
4242
> [!div class="nextstepaction"]
@@ -55,9 +55,7 @@ Data
5555
|--|--|--|
5656
| ['a','b','c'] | [1,'2',3.4] | {'a': 1,'b': '2','c': 3.4} |
5757

58-
### More keys than values
59-
60-
In the following example, the array of keys is longer than the array of values. The missing values are filled with nulls.
58+
The following example shows how to use `bag_zip()` when the arrays have different lengths. In this case, the resulting property-bag contains null values for the missing keys.
6159

6260
:::moniker range="azure-data-explorer"
6361
> [!div class="nextstepaction"]
@@ -76,9 +74,7 @@ Data
7674
|--|--|--|
7775
| ['a','b','c'] | [1,'2'] | {'a': 1,'b': '2','c': null} |
7876

79-
### More values than keys
80-
81-
In the following example, the array of values is longer than the array of keys. Values with no matching keys are ignored.
77+
The following example shows how to use `bag_zip()` when the arrays have different lengths. In this case, the resulting property-bag contains null values for the missing keys.
8278

8379
:::moniker range="azure-data-explorer"
8480
> [!div class="nextstepaction"]
@@ -97,9 +93,7 @@ Data
9793
|--|--|--|
9894
| ['a','b'] | [1,'2',2.5] | {'a': 1,'b': '2'} |
9995

100-
### Non-string keys
101-
102-
In the following example, there are some values in they keys array that aren't of type string. The non-string values are ignored.
96+
The following example demonstrates how `bag_zip()` handles cases where the keys array contains non-string values. Any key that isn't a string is excluded from the resulting property-bag.
10397

10498
:::moniker range="azure-data-explorer"
10599
> [!div class="nextstepaction"]
@@ -118,9 +112,7 @@ Data
118112
|--|--|--|
119113
| ['a',8,'b'] | [1,'2',2.5] | {'a': 1,'b': 2.5} |
120114

121-
### Fill values with null
122-
123-
In the following example, the parameter that is supposed to be an array of values isn't an array, so all values are filled with nulls.
115+
The following example demonstrates how `bag_zip()` behaves when the parameter intended to be an array of values is not actually an array. In this case, all resulting property values are set to null.
124116

125117
:::moniker range="azure-data-explorer"
126118
> [!div class="nextstepaction"]
@@ -139,9 +131,7 @@ Data
139131
|--|--|--|
140132
| ['a',8,'b'] | 1 | {'a': null,'b': null} |
141133

142-
### Null property-bag
143-
144-
In the following example, the parameter that is supposed to be an array of keys isn't an array, so the resulting property-bag is null.
134+
The following example demonstrates how `bag_zip()` behaves when the parameter intended to be an array of keys is not actually an array. In this case, the resulting property-bag is null.
145135

146136
:::moniker range="azure-data-explorer"
147137
> [!div class="nextstepaction"]

data-explorer/kusto/query/base64-decode-toarray-function.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ Decodes a base64 string to an array of long values.
2727

2828
Returns an array of long values decoded from a base64 string.
2929

30-
## Example
30+
## Examples
31+
32+
The following example shows how to use `base64_decode_toarray()` to decode a base64 string into an array of long values.
3133

3234
:::moniker range="azure-data-explorer"
3335
> [!div class="nextstepaction"]

data-explorer/kusto/query/base64-decode-toguid-function.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ Decodes a base64 string to a [GUID](scalar-data-types/guid.md).
2727

2828
Returns a [GUID](scalar-data-types/guid.md) decoded from a base64 string.
2929

30-
## Example
30+
## Examples
31+
32+
The following example shows how to use `base64_decode_toguid()` to decode a base64 string into a GUID.
3133

3234
:::moniker range="azure-data-explorer"
3335
> [!div class="nextstepaction"]

data-explorer/kusto/query/base64-decode-tostring-function.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ Decodes a base64 string to a UTF-8 string.
2929

3030
Returns UTF-8 string decoded from base64 string.
3131

32-
## Example
32+
## Examples
33+
34+
The following example shows how to use `base64_decode_tostring()` to decode a base64 string into a UTF-8 string.
3335

3436
:::moniker range="azure-data-explorer"
3537
> [!div class="nextstepaction"]

data-explorer/kusto/query/base64-encode-fromarray-function.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Returns the base64 string encoded from the bytes array. Note that byte is an int
2929

3030
## Examples
3131

32+
The following example shows how to use `base64_encode_fromarray()` to encode a bytes array into a base64 string.
33+
3234
:::moniker range="azure-data-explorer"
3335
> [!div class="nextstepaction"]
3436
> <a href="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA8tJLVFIqixJLY5PLCpKrFSwVSjJL05OzEks0igoyswDSiYWp5qZxKekJuenpMaX5IOVaSgFG4dVpbhb2CppalpzQVRClKTEQ3UUlwBF04EGQvmpeWAT0orycyFmIFmrCQCPOEFEhwAAAA==" target="_blank">Run the query</a>

data-explorer/kusto/query/base64-encode-fromguid-function.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ Encodes a [GUID](scalar-data-types/guid.md) to a base64 string.
2727

2828
Returns a base64 string encoded from a GUID.
2929

30-
## Example
30+
## Examples
31+
32+
The following example shows how to use `base64_encode_fromguid()` to encode a GUID into a base64 string.
3133

3234
:::moniker range="azure-data-explorer"
3335
> [!div class="nextstepaction"]

data-explorer/kusto/query/base64-encode-tostring-function.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ Encodes a string as base64 string.
2929

3030
Returns *string* encoded as a base64 string.
3131

32-
## Example
32+
## Examples
33+
34+
The following example shows how to use `base64_encode_tostring()` to encode a string into a base64 string.
3335

3436
:::moniker range="azure-data-explorer"
3537
> [!div class="nextstepaction"]

data-explorer/kusto/query/basket-plugin.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ Each pattern is represented by a row in the results. The first column is the seg
3838
> [!NOTE]
3939
> The algorithm uses sampling to determine the initial frequent values. Therefore, the results could slightly differ between multiple runs for patterns whose frequency is close to the threshold.
4040
41-
## Example
41+
## Examples
42+
43+
The following example uses the `basket` plugin to find frequent patterns in the data.
4244

4345
:::moniker range="azure-data-explorer"
4446
> [!div class="nextstepaction"]
@@ -66,7 +68,7 @@ StormEvents
6668
|6|1310|22.3|||YES|
6769
|7|1291|21.9||Thunderstorm Wind||
6870

69-
### Example with custom wildcards
71+
The following example demonstrates using the `basket` plugin with a weight column and custom wildcards to find frequent patterns.
7072

7173
:::moniker range="azure-data-explorer"
7274
> [!div class="nextstepaction"]

0 commit comments

Comments
 (0)