Skip to content

Commit a90fff9

Browse files
authored
Merge pull request #113192 from v-maudel/patch-489
C189395 Adding Hard Breaks before code
2 parents ecdf561 + 19bb748 commit a90fff9

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

articles/data-factory/data-flow-expression-functions.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -132,103 +132,103 @@ Gets all output columns for a stream. You can pass a optional stream name as the
132132
___
133133
### <code>compare</code>
134134
<code><b>compare(<i>&lt;value1&gt;</i> : any, <i>&lt;value2&gt;</i> : any) => integer</b></code><br/><br/>
135-
Compares two values of the same type. Returns negative integer if value1 < value2, 0 if value1 == value2, positive value if value1 > value2
135+
Compares two values of the same type. Returns negative integer if value1 < value2, 0 if value1 == value2, positive value if value1 > value2
136136
* ``(compare(12, 24) < 1) -> true``
137137
* ``(compare('dumbo', 'dum') > 0) -> true``
138138
___
139139
### <code>concat</code>
140140
<code><b>concat(<i>&lt;this&gt;</i> : string, <i>&lt;that&gt;</i> : string, ...) => string</b></code><br/><br/>
141-
Concatenates a variable number of strings together. Same as the + operator with strings
141+
Concatenates a variable number of strings together. Same as the + operator with strings
142142
* ``concat('dataflow', 'is', 'awesome') -> 'dataflowisawesome'``
143143
* ``'dataflow' + 'is' + 'awesome' -> 'dataflowisawesome'``
144144
* ``isNull('sql' + null) -> true``
145145
___
146146
### <code>concatWS</code>
147147
<code><b>concatWS(<i>&lt;separator&gt;</i> : string, <i>&lt;this&gt;</i> : string, <i>&lt;that&gt;</i> : string, ...) => string</b></code><br/><br/>
148-
Concatenates a variable number of strings together with a separator. The first parameter is the separator
148+
Concatenates a variable number of strings together with a separator. The first parameter is the separator
149149
* ``concatWS(' ', 'dataflow', 'is', 'awesome') -> 'dataflow is awesome'``
150150
* ``isNull(concatWS(null, 'dataflow', 'is', 'awesome')) -> true``
151151
* ``concatWS(' is ', 'dataflow', 'awesome') -> 'dataflow is awesome'``
152152
___
153153
### <code>contains</code>
154154
<code><b>contains(<i>&lt;value1&gt;</i> : array, <i>&lt;value2&gt;</i> : unaryfunction) => boolean</b></code><br/><br/>
155-
Returns true if any element in the provided array evaluates as true in the provided predicate. Contains expects a reference to one element in the predicate function as #item
155+
Returns true if any element in the provided array evaluates as true in the provided predicate. Contains expects a reference to one element in the predicate function as #item
156156
* ``contains([1, 2, 3, 4], #item == 3) -> true``
157157
* ``contains([1, 2, 3, 4], #item > 5) -> false``
158158
___
159159
### <code>cos</code>
160160
<code><b>cos(<i>&lt;value1&gt;</i> : number) => double</b></code><br/><br/>
161-
Calculates a cosine value
161+
Calculates a cosine value
162162
* ``cos(10) -> -0.8390715290764524``
163163
___
164164
### <code>cosh</code>
165165
<code><b>cosh(<i>&lt;value1&gt;</i> : number) => double</b></code><br/><br/>
166-
Calculates a hyperbolic cosine of a value
166+
Calculates a hyperbolic cosine of a value
167167
* ``cosh(0) -> 1.0``
168168
___
169169
### <code>crc32</code>
170170
<code><b>crc32(<i>&lt;value1&gt;</i> : any, ...) => long</b></code><br/><br/>
171-
Calculates the CRC32 hash of set of column of varying primitive datatypes given a bit length which can only be of values 0(256), 224, 256, 384, 512. It can be used to calculate a fingerprint for a row
171+
Calculates the CRC32 hash of set of column of varying primitive datatypes given a bit length which can only be of values 0(256), 224, 256, 384, 512. It can be used to calculate a fingerprint for a row
172172
* ``crc32(256, 'gunchus', 8.2, 'bojjus', true, toDate('2010-4-4')) -> 3630253689L``
173173
___
174174
### <code>currentDate</code>
175175
<code><b>currentDate([<i>&lt;value1&gt;</i> : string]) => date</b></code><br/><br/>
176-
Gets the current date when this job starts to run. You can pass an optional timezone in the form of 'GMT', 'PST', 'UTC', 'America/Cayman'. The local timezone is used as the default.Refer Java's SimpleDateFormat for available formats. ["https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html](https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html)
176+
Gets the current date when this job starts to run. You can pass an optional timezone in the form of 'GMT', 'PST', 'UTC', 'America/Cayman'. The local timezone is used as the default.Refer Java's SimpleDateFormat for available formats. ["https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html](https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html)
177177
* ``currentDate() == toDate('2250-12-31') -> false``
178178
* ``currentDate('PST') == toDate('2250-12-31') -> false``
179179
* ``currentDate('America/New_York') == toDate('2250-12-31') -> false``
180180
___
181181
### <code>currentTimestamp</code>
182182
<code><b>currentTimestamp() => timestamp</b></code><br/><br/>
183-
Gets the current timestamp when the job starts to run with local time zone
183+
Gets the current timestamp when the job starts to run with local time zone
184184
* ``currentTimestamp() == toTimestamp('2250-12-31 12:12:12') -> false``
185185
___
186186
### <code>currentUTC</code>
187187
<code><b>currentUTC([<i>&lt;value1&gt;</i> : string]) => timestamp</b></code><br/><br/>
188-
Gets the current timestamp as UTC. If you want your current time to be interpreted in a different timezone than your cluster time zone,you can pass an optional timezone in the form of 'GMT', 'PST', 'UTC', 'America/Cayman'. It is defaulted to the current timezone. Refer Java's SimpleDateFormat for available formats. [https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html](https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html). To convert the UTC time to a different timezone use fromUTC()
188+
Gets the current timestamp as UTC. If you want your current time to be interpreted in a different timezone than your cluster time zone,you can pass an optional timezone in the form of 'GMT', 'PST', 'UTC', 'America/Cayman'. It is defaulted to the current timezone. Refer Java's SimpleDateFormat for available formats. [https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html](https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html). To convert the UTC time to a different timezone use fromUTC()
189189
* ``currentUTC() == toTimestamp('2050-12-12 19:18:12') -> false``
190190
* ``currentUTC() != toTimestamp('2050-12-12 19:18:12') -> true``
191191
* ``fromUTC(currentUTC(), 'Asia/Seoul') != toTimestamp('2050-12-12 19:18:12') -> true``
192192
___
193193
### <code>dayOfMonth</code>
194194
<code><b>dayOfMonth(<i>&lt;value1&gt;</i> : datetime) => integer</b></code><br/><br/>
195-
Gets the day of the month given a date
195+
Gets the day of the month given a date
196196
* ``dayOfMonth(toDate('2018-06-08')) -> 8``
197197
___
198198
### <code>dayOfWeek</code>
199199
<code><b>dayOfWeek(<i>&lt;value1&gt;</i> : datetime) => integer</b></code><br/><br/>
200-
Gets the day of the week given a date. 1 - Sunday, 2 - Monday ..., 7 - Saturday
200+
Gets the day of the week given a date. 1 - Sunday, 2 - Monday ..., 7 - Saturday
201201
* ``dayOfWeek(toDate('2018-06-08')) -> 6``
202202
___
203203
### <code>dayOfYear</code>
204204
<code><b>dayOfYear(<i>&lt;value1&gt;</i> : datetime) => integer</b></code><br/><br/>
205-
Gets the day of the year given a date
205+
Gets the day of the year given a date
206206
* ``dayOfYear(toDate('2016-04-09')) -> 100``
207207
___
208208
### <code>days</code>
209209
<code><b>days(<i>&lt;value1&gt;</i> : integer) => long</b></code><br/><br/>
210-
Duration in milliseconds for number of days
210+
Duration in milliseconds for number of days
211211
* ``days(2) -> 172800000L``
212212
___
213213
### <code>degrees</code>
214214
<code><b>degrees(<i>&lt;value1&gt;</i> : number) => double</b></code><br/><br/>
215-
Converts radians to degrees
215+
Converts radians to degrees
216216
* ``degrees(3.141592653589793) -> 180``
217217
___
218218
### <code>divide</code>
219219
<code><b>divide(<i>&lt;value1&gt;</i> : any, <i>&lt;value2&gt;</i> : any) => any</b></code><br/><br/>
220-
Divides pair of numbers. Same as the / operator
220+
Divides pair of numbers. Same as the / operator
221221
* ``divide(20, 10) -> 2``
222222
* ``20 / 10 -> 2``
223223
___
224224
### <code>endsWith</code>
225225
<code><b>endsWith(<i>&lt;string&gt;</i> : string, <i>&lt;substring to check&gt;</i> : string) => boolean</b></code><br/><br/>
226-
Checks if the string ends with the supplied string
226+
Checks if the string ends with the supplied string
227227
* ``endsWith('dumbo', 'mbo') -> true``
228228
___
229229
### <code>equals</code>
230230
<code><b>equals(<i>&lt;value1&gt;</i> : any, <i>&lt;value2&gt;</i> : any) => boolean</b></code><br/><br/>
231-
Comparison equals operator. Same as == operator
231+
Comparison equals operator. Same as == operator
232232
* ``equals(12, 24) -> false``
233233
* ``12 == 24 -> false``
234234
* ``'bad' == 'bad' -> true``
@@ -237,90 +237,90 @@ Comparison equals operator. Same as == operator
237237
___
238238
### <code>equalsIgnoreCase</code>
239239
<code><b>equalsIgnoreCase(<i>&lt;value1&gt;</i> : string, <i>&lt;value2&gt;</i> : string) => boolean</b></code><br/><br/>
240-
Comparison equals operator ignoring case. Same as <=> operator
240+
Comparison equals operator ignoring case. Same as <=> operator
241241
* ``'abc'<=>'Abc' -> true``
242242
* ``equalsIgnoreCase('abc', 'Abc') -> true``
243243
___
244244
### <code>factorial</code>
245245
<code><b>factorial(<i>&lt;value1&gt;</i> : number) => long</b></code><br/><br/>
246-
Calculate the factorial of a number
246+
Calculate the factorial of a number
247247
* ``factorial(5) -> 120``
248248
___
249249
### <code>false</code>
250250
<code><b>false() => boolean</b></code><br/><br/>
251-
Always returns a false value. Use the function syntax(false()) if there is a column named 'false'
251+
Always returns a false value. Use the function syntax(false()) if there is a column named 'false'
252252
* ``(10 + 20 > 30) -> false``
253253
* ``(10 + 20 > 30) -> false()``
254254
___
255255
### <code>filter</code>
256256
<code><b>filter(<i>&lt;value1&gt;</i> : array, <i>&lt;value2&gt;</i> : unaryfunction) => array</b></code><br/><br/>
257-
Filters elements out of the array that do not meet the provided predicate. Filter expects a reference to one element in the predicate function as #item
257+
Filters elements out of the array that do not meet the provided predicate. Filter expects a reference to one element in the predicate function as #item
258258
* ``filter([1, 2, 3, 4], #item > 2) -> [3, 4]``
259259
* ``filter(['a', 'b', 'c', 'd'], #item == 'a' || #item == 'b') -> ['a', 'b']``
260260
___
261261
### <code>floor</code>
262262
<code><b>floor(<i>&lt;value1&gt;</i> : number) => number</b></code><br/><br/>
263-
Returns the largest integer not greater than the number
263+
Returns the largest integer not greater than the number
264264
* ``floor(-0.1) -> -1``
265265
___
266266
### <code>fromBase64</code>
267267
<code><b>fromBase64(<i>&lt;value1&gt;</i> : string) => string</b></code><br/><br/>
268-
Encodes the given string in base64
268+
Encodes the given string in base64
269269
* ``fromBase64('Z3VuY2h1cw==') -> 'gunchus'``
270270
___
271271
### <code>fromUTC</code>
272272
<code><b>fromUTC(<i>&lt;value1&gt;</i> : timestamp, [<i>&lt;value2&gt;</i> : string]) => timestamp</b></code><br/><br/>
273-
Converts to the timestamp from UTC. You can optionally pass the timezone in the form of 'GMT', 'PST', 'UTC', 'America/Cayman'. It is defaulted to the current timezoneRefer Java's SimpleDateFormat for available formats. https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
273+
Converts to the timestamp from UTC. You can optionally pass the timezone in the form of 'GMT', 'PST', 'UTC', 'America/Cayman'. It is defaulted to the current timezoneRefer Java's SimpleDateFormat for available formats. https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
274274
* ``fromUTC(currentTimeStamp()) == toTimestamp('2050-12-12 19:18:12') -> false``
275275
* ``fromUTC(currentTimeStamp(), 'Asia/Seoul') != toTimestamp('2050-12-12 19:18:12') -> true``
276276
___
277277
### <code>greater</code>
278278
<code><b>greater(<i>&lt;value1&gt;</i> : any, <i>&lt;value2&gt;</i> : any) => boolean</b></code><br/><br/>
279-
Comparison greater operator. Same as > operator
279+
Comparison greater operator. Same as > operator
280280
* ``greater(12, 24) -> false``
281281
* ``('dumbo' > 'dum') -> true``
282282
* ``(toTimestamp('2019-02-05 08:21:34.890', 'yyyy-MM-dd HH:mm:ss.SSS') > toTimestamp('2019-02-03 05:19:28.871', 'yyyy-MM-dd HH:mm:ss.SSS')) -> true``
283283
___
284284
### <code>greaterOrEqual</code>
285285
<code><b>greaterOrEqual(<i>&lt;value1&gt;</i> : any, <i>&lt;value2&gt;</i> : any) => boolean</b></code><br/><br/>
286-
Comparison greater than or equal operator. Same as >= operator
286+
Comparison greater than or equal operator. Same as >= operator
287287
* ``greaterOrEqual(12, 12) -> true``
288288
* ``('dumbo' >= 'dum') -> true``
289289
___
290290
### <code>greatest</code>
291291
<code><b>greatest(<i>&lt;value1&gt;</i> : any, ...) => any</b></code><br/><br/>
292-
Returns the greatest value among the list of values as input skipping null values. Returns null if all inputs are null
292+
Returns the greatest value among the list of values as input skipping null values. Returns null if all inputs are null
293293
* ``greatest(10, 30, 15, 20) -> 30``
294294
* ``greatest(10, toInteger(null), 20) -> 20``
295295
* ``greatest(toDate('2010-12-12'), toDate('2011-12-12'), toDate('2000-12-12')) -> toDate('2011-12-12')``
296296
* ``greatest(toTimestamp('2019-02-03 05:19:28.871', 'yyyy-MM-dd HH:mm:ss.SSS'), toTimestamp('2019-02-05 08:21:34.890', 'yyyy-MM-dd HH:mm:ss.SSS')) -> toTimestamp('2019-02-05 08:21:34.890', 'yyyy-MM-dd HH:mm:ss.SSS')``
297297
___
298298
### <code>hasColumn</code>
299299
<code><b>hasColumn(<i>&lt;column name&gt;</i> : string, [<i>&lt;stream name&gt;</i> : string]) => boolean</b></code><br/><br/>
300-
Checks for a column value by name in the stream. You can pass a optional stream name as the second argument. Column names known at design time should be addressed just by their name. Computed inputs are not supported but you can use parameter substitutions
300+
Checks for a column value by name in the stream. You can pass a optional stream name as the second argument. Column names known at design time should be addressed just by their name. Computed inputs are not supported but you can use parameter substitutions
301301
* ``hasColumn('parent')``
302302
___
303303
### <code>hour</code>
304304
<code><b>hour(<i>&lt;value1&gt;</i> : timestamp, [<i>&lt;value2&gt;</i> : string]) => integer</b></code><br/><br/>
305-
Gets the hour value of a timestamp. You can pass an optional timezone in the form of 'GMT', 'PST', 'UTC', 'America/Cayman'. The local timezone is used as the default.Refer Java's SimpleDateFormat for available formats. https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
305+
Gets the hour value of a timestamp. You can pass an optional timezone in the form of 'GMT', 'PST', 'UTC', 'America/Cayman'. The local timezone is used as the default.Refer Java's SimpleDateFormat for available formats. https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
306306
* ``hour(toTimestamp('2009-07-30 12:58:59')) -> 12``
307307
* ``hour(toTimestamp('2009-07-30 12:58:59'), 'PST') -> 12``
308308
___
309309
### <code>hours</code>
310310
<code><b>hours(<i>&lt;value1&gt;</i> : integer) => long</b></code><br/><br/>
311-
Duration in milliseconds for number of hours
311+
Duration in milliseconds for number of hours
312312
* ``hours(2) -> 7200000L``
313313
___
314314
### <code>iif</code>
315315
<code><b>iif(<i>&lt;condition&gt;</i> : boolean, <i>&lt;true_expression&gt;</i> : any, [<i>&lt;false_expression&gt;</i> : any]) => any</b></code><br/><br/>
316-
Based on a condition applies one value or the other. If other is unspecified it is considered NULL. Both the values must be compatible(numeric, string...)
316+
Based on a condition applies one value or the other. If other is unspecified it is considered NULL. Both the values must be compatible(numeric, string...)
317317
* ``iif(10 + 20 == 30, 'dumbo', 'gumbo') -> 'dumbo'``
318318
* ``iif(10 > 30, 'dumbo', 'gumbo') -> 'gumbo'``
319319
* ``iif(month(toDate('2018-12-01')) == 12, 345.12, 102.67) -> 345.12``
320320
___
321321
### <code>iifNull</code>
322322
<code><b>iifNull(<i>&lt;value1&gt;</i> : any, [<i>&lt;value2&gt;</i> : any], ...) => any</b></code><br/><br/>
323-
Checks if the value is NOT NULL and returns it else returns the alternate. It tests for all inputs until it finds the first non-null value
323+
Checks if the value is NOT NULL and returns it else returns the alternate. It tests for all inputs until it finds the first non-null value
324324
* ``iifNull(10, 20) -> 10``
325325
* ``iifNull(null, 20, 40) -> 20``
326326
* ``iifNull('bojjus', 'bo', 'dumbo') -> 'dumbo'``

0 commit comments

Comments
 (0)