Skip to content

Commit 14f6d22

Browse files
authored
Merge pull request #189662 from bwren/patch-32
Remove dynamic data not supported
2 parents d2df487 + 11da353 commit 14f6d22

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

articles/azure-monitor/essentials/data-collection-rule-transformations.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ Transformations don't currently support [has](/azure/data-explorer/kusto/query/h
5959

6060

6161
### Handling dynamic data
62-
Since the properties of type [dynamic](/azure/data-explorer/kusto/query/scalar-data-types/dynamic) aren't supported in the input stream schema, you need alternate methods for strings containing JSON.
63-
64-
Consider the following input:
62+
Consider the following input with [dynamic data](/azure/data-explorer/kusto/query/scalar-data-types/dynamic):
6563

6664
```json
6765
{
@@ -74,7 +72,7 @@ Consider the following input:
7472
}
7573
```
7674

77-
In order to access the properties in *AdditionalContext*, define it as string-typed column in the input stream:
75+
In order to access the properties in *AdditionalContext*, define it as dynamic-typed column in the input stream:
7876

7977
```json
8078
"columns": [
@@ -88,7 +86,7 @@ In order to access the properties in *AdditionalContext*, define it as string-ty
8886
},
8987
{
9088
"name": "AdditionalContext",
91-
"type": "string"
89+
"type": "dynamic"
9290
}
9391
]
9492
```
@@ -103,15 +101,13 @@ source
103101
```
104102

105103
### Dynamic literals
106-
[Dynamic literals](/azure/data-explorer/kusto/query/scalar-data-types/dynamic#dynamic-literals) aren't supported, but you can use the [parse_json function](/azure/data-explorer/kusto/query/parsejsonfunction) as a workaround.
104+
Use the [parse_json function](/azure/data-explorer/kusto/query/parsejsonfunction) to handle [dynamic literals](/azure/data-explorer/kusto/query/scalar-data-types/dynamic#dynamic-literals).
107105

108-
For example, the following query isn't supported:
106+
For example, the following queries provide the same functionality:
109107

110108
```kql
111109
print d=dynamic({"a":123, "b":"hello", "c":[1,2,3], "d":{}})
112-
```
113-
114-
The following query is supported and provides the same functionality:
110+
```
115111

116112
```kql
117113
print d=parse_json('{"a":123, "b":"hello", "c":[1,2,3], "d":{}}')

0 commit comments

Comments
 (0)