Skip to content

Commit 771190c

Browse files
committed
ADT Docs - Clean up type check function descriptions
1 parent 13c8486 commit 771190c

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

articles/digital-twins/reference-query-functions.md

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The following query returns all digital twins whose IDs end in `-small`. The str
6767

6868
## IS_BOOL
6969

70-
A type checking and casting function for determining whether an expression has a Boolean value.
70+
A type checking function for determining whether an expression has a Boolean value.
7171

7272
This function is often combined with other predicates if the program processing the query results requires a boolean value, and you want to filter out cases where the property is not a boolean.
7373

@@ -95,17 +95,15 @@ The following query builds on the above example to select the digital twins that
9595

9696
## IS_DEFINED
9797

98-
A type checking and casting function to check whether a property is defined.
99-
100-
This is only supported when the property value is a primitive type. Primitive types include string, Boolean, numeric, or `null`. `DateTime`, object types, and arrays are not supported.
98+
A type checking function to determine whether a property is defined.
10199

102100
### Syntax
103101

104102
:::code language="sql" source="~/digital-twins-docs-samples/queries/reference.sql" ID="IsDefinedSyntax":::
105103

106104
### Arguments
107105

108-
`<property>`, a property to determine whether it is defined. The property must be of a primitive type.
106+
`<property>`, a property to determine whether it is defined.
109107

110108
### Returns
111109

@@ -119,19 +117,19 @@ The following query returns all digital twins who have a defined `Location` prop
119117

120118
## IS_NULL
121119

122-
A type checking and casting function for determining whether an expression's value is `null`.
120+
A type checking function for determining whether an property's value is `null`.
123121

124122
### Syntax
125123

126124
:::code language="sql" source="~/digital-twins-docs-samples/queries/reference.sql" ID="IsNullSyntax":::
127125

128126
### Arguments
129127

130-
`<expression>`, an expression to check whether it is null.
128+
`<property>`, a property to check whether it is null.
131129

132130
### Returns
133131

134-
A Boolean value indicating if the type of the specified expression is `null`.
132+
A Boolean value indicating if the type of the specified property is `null`.
135133

136134
### Example
137135

@@ -141,7 +139,7 @@ The following query returns twins who do not have a null value for Temperature.
141139

142140
## IS_NUMBER
143141

144-
A type checking and casting function for determining whether an expression has a number value.
142+
A type checking function for determining whether a property has a number value.
145143

146144
This function is often combined with other predicates if the program processing the query results requires a number value, and you want to filter out cases where the property is not a number.
147145

@@ -151,11 +149,11 @@ This function is often combined with other predicates if the program processing
151149

152150
### Arguments
153151

154-
`<expression>`, an expression to check whether it is a number.
152+
`<property>`, a property to check whether it is a number.
155153

156154
### Returns
157155

158-
A Boolean value indicating if the type of the specified expression is a number.
156+
A Boolean value indicating if the type of the specified property is a number.
159157

160158
### Example
161159

@@ -165,7 +163,7 @@ The following query selects the digital twins that have a numeric `Capacity` pro
165163

166164
## IS_OBJECT
167165

168-
A type checking and casting function for determining whether an expression's value is of a JSON object type.
166+
A type checking function for determining whether a property's value is of a JSON object type.
169167

170168
This function is often combined with other predicates if the program processing the query results requires a JSON object, and you want to filter out cases where the value is not a JSON object.
171169

@@ -175,11 +173,11 @@ This function is often combined with other predicates if the program processing
175173

176174
### Arguments
177175

178-
`<expression>`, an expression to check whether it is of an object type.
176+
`<property>`, a property to check whether it is of an object type.
179177

180178
### Returns
181179

182-
A Boolean value indicating if the type of the specified expression is a JSON object.
180+
A Boolean value indicating if the type of the specified property is a JSON object.
183181

184182
### Example
185183

@@ -189,7 +187,7 @@ The following query selects all of the digital twins where this is an object cal
189187

190188
## IS_OF_MODEL
191189

192-
A type checking and casting function to determine whether a twin is of a particular model type. Includes models that inherit from the specified model.
190+
A type checking and function to determine whether a twin is of a particular model type. Includes models that inherit from the specified model.
193191

194192
### Syntax
195193

@@ -216,7 +214,7 @@ The following query returns twins from the DT collection that are exactly of the
216214

217215
## IS_PRIMITIVE
218216

219-
A type checking and casting function for determining whether an expression's value is of a primitive type (string, Boolean, numeric, or `null`).
217+
A type checking function for determining whether a property's value is of a primitive type (string, Boolean, numeric, or `null`).
220218

221219
This function is often combined with other predicates if the program processing the query results requires a primitive-typed value, and you want to filter out cases where the property is not primitive.
222220

@@ -226,11 +224,11 @@ This function is often combined with other predicates if the program processing
226224

227225
### Arguments
228226

229-
`<expression>`, an expression to check whether it is of a primitive type.
227+
`<property>`, a property to check whether it is of a primitive type.
230228

231229
### Returns
232230

233-
A Boolean value indicating if the type of the specified expression is one of the primitive types (string, Boolean, numeric, or `null`).
231+
A Boolean value indicating if the type of the specified property is one of the primitive types (string, Boolean, numeric, or `null`).
234232

235233
### Example
236234

@@ -240,7 +238,7 @@ The following query returns the `area` property of the Factory with the ID of 'A
240238

241239
## IS_STRING
242240

243-
A type checking and casting function for determining whether an expression has a string value.
241+
A type checking function for determining whether a property has a string value.
244242

245243
This function is often combined with other predicates if the program processing the query results requires a string value, and you want to filter out cases where the property is not a string.
246244

@@ -250,7 +248,7 @@ This function is often combined with other predicates if the program processing
250248

251249
### Arguments
252250

253-
`<expression>`, an expression to check whether it is a string.
251+
`<property>`, a property to check whether it is a string.
254252

255253
### Returns
256254

0 commit comments

Comments
 (0)