Skip to content

Commit 5666d3d

Browse files
authored
Merge pull request #113193 from v-maudel/patch-490
C189395 Adding Hard Breaks before code
2 parents a90fff9 + ae3815d commit 5666d3d

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

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

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -327,176 +327,176 @@ Checks if the value is NOT NULL and returns it else returns the alternate. It te
327327
___
328328
### <code>in</code>
329329
<code><b>in(<i>&lt;array of items&gt;</i> : array, <i>&lt;item to find&gt;</i> : any) => boolean</b></code><br/><br/>
330-
Checks if an item is in the array
330+
Checks if an item is in the array
331331
* ``in([10, 20, 30], 10) -> true``
332332
* ``in(['good', 'kid'], 'bad') -> false``
333333
___
334334
### <code>initCap</code>
335335
<code><b>initCap(<i>&lt;value1&gt;</i> : string) => string</b></code><br/><br/>
336-
Converts the first letter of every word to uppercase. Words are identified as separated by whitespace
336+
Converts the first letter of every word to uppercase. Words are identified as separated by whitespace
337337
* ``initCap('cool iceCREAM') -> 'Cool Icecream'``
338338
___
339339
### <code>instr</code>
340340
<code><b>instr(<i>&lt;string&gt;</i> : string, <i>&lt;substring to find&gt;</i> : string) => integer</b></code><br/><br/>
341-
Finds the position(1 based) of the substring within a string. 0 is returned if not found
341+
Finds the position(1 based) of the substring within a string. 0 is returned if not found
342342
* ``instr('dumbo', 'mbo') -> 3``
343343
* ``instr('microsoft', 'o') -> 5``
344344
* ``instr('good', 'bad') -> 0``
345345
___
346346
### <code>isDelete</code>
347347
<code><b>isDelete([<i>&lt;value1&gt;</i> : integer]) => boolean</b></code><br/><br/>
348-
Checks if the row is marked for delete. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
348+
Checks if the row is marked for delete. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
349349
* ``isDelete()``
350350
* ``isDelete(1)``
351351
___
352352
### <code>isError</code>
353353
<code><b>isError([<i>&lt;value1&gt;</i> : integer]) => boolean</b></code><br/><br/>
354-
Checks if the row is marked as error. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
354+
Checks if the row is marked as error. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
355355
* ``isError()``
356356
* ``isError(1)``
357357
___
358358
### <code>isIgnore</code>
359359
<code><b>isIgnore([<i>&lt;value1&gt;</i> : integer]) => boolean</b></code><br/><br/>
360-
Checks if the row is marked to be ignored. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
360+
Checks if the row is marked to be ignored. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
361361
* ``isIgnore()``
362362
* ``isIgnore(1)``
363363
___
364364
### <code>isInsert</code>
365365
<code><b>isInsert([<i>&lt;value1&gt;</i> : integer]) => boolean</b></code><br/><br/>
366-
Checks if the row is marked for insert. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
366+
Checks if the row is marked for insert. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
367367
* ``isInsert()``
368368
* ``isInsert(1)``
369369
___
370370
### <code>isMatch</code>
371371
<code><b>isMatch([<i>&lt;value1&gt;</i> : integer]) => boolean</b></code><br/><br/>
372-
Checks if the row is matched at lookup. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
372+
Checks if the row is matched at lookup. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
373373
* ``isMatch()``
374374
* ``isMatch(1)``
375375
___
376376
### <code>isNull</code>
377377
<code><b>isNull(<i>&lt;value1&gt;</i> : any) => boolean</b></code><br/><br/>
378-
Checks if the value is NULL
378+
Checks if the value is NULL
379379
* ``isNull(NULL()) -> true``
380380
* ``isNull('') -> false``
381381
___
382382
### <code>isUpdate</code>
383383
<code><b>isUpdate([<i>&lt;value1&gt;</i> : integer]) => boolean</b></code><br/><br/>
384-
Checks if the row is marked for update. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
384+
Checks if the row is marked for update. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
385385
* ``isUpdate()``
386386
* ``isUpdate(1)``
387387
___
388388
### <code>isUpsert</code>
389389
<code><b>isUpsert([<i>&lt;value1&gt;</i> : integer]) => boolean</b></code><br/><br/>
390-
Checks if the row is marked for insert. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
390+
Checks if the row is marked for insert. For transformations taking more than one input stream you can pass the (1-based) index of the stream. The stream index should be either 1 or 2 and the default value is 1
391391
* ``isUpsert()``
392392
* ``isUpsert(1)``
393393
___
394394
### <code>lastDayOfMonth</code>
395395
<code><b>lastDayOfMonth(<i>&lt;value1&gt;</i> : datetime) => date</b></code><br/><br/>
396-
Gets the last date of the month given a date
396+
Gets the last date of the month given a date
397397
* ``lastDayOfMonth(toDate('2009-01-12')) -> toDate('2009-01-31')``
398398
___
399399
### <code>least</code>
400400
<code><b>least(<i>&lt;value1&gt;</i> : any, ...) => any</b></code><br/><br/>
401-
Comparison lesser than or equal operator. Same as <= operator
401+
Comparison lesser than or equal operator. Same as <= operator
402402
* ``least(10, 30, 15, 20) -> 10``
403403
* ``least(toDate('2010-12-12'), toDate('2011-12-12'), toDate('2000-12-12')) -> toDate('2000-12-12')``
404404
___
405405
### <code>left</code>
406406
<code><b>left(<i>&lt;string to subset&gt;</i> : string, <i>&lt;number of characters&gt;</i> : integral) => string</b></code><br/><br/>
407-
Extracts a substring start at index 1 with number of characters. Same as SUBSTRING(str, 1, n)
407+
Extracts a substring start at index 1 with number of characters. Same as SUBSTRING(str, 1, n)
408408
* ``left('bojjus', 2) -> 'bo'``
409409
* ``left('bojjus', 20) -> 'bojjus'``
410410
___
411411
### <code>length</code>
412412
<code><b>length(<i>&lt;value1&gt;</i> : string) => integer</b></code><br/><br/>
413-
Returns the length of the string
413+
Returns the length of the string
414414
* ``length('dumbo') -> 5``
415415
___
416416
### <code>lesser</code>
417417
<code><b>lesser(<i>&lt;value1&gt;</i> : any, <i>&lt;value2&gt;</i> : any) => boolean</b></code><br/><br/>
418-
Comparison less operator. Same as < operator
418+
Comparison less operator. Same as < operator
419419
* ``lesser(12, 24) -> true``
420420
* ``('abcd' < 'abc') -> false``
421421
* ``(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')) -> true``
422422
___
423423
### <code>lesserOrEqual</code>
424424
<code><b>lesserOrEqual(<i>&lt;value1&gt;</i> : any, <i>&lt;value2&gt;</i> : any) => boolean</b></code><br/><br/>
425-
Comparison lesser than or equal operator. Same as <= operator
425+
Comparison lesser than or equal operator. Same as <= operator
426426
* ``lesserOrEqual(12, 12) -> true``
427427
* ``('dumbo' <= 'dum') -> false``
428428
___
429429
### <code>levenshtein</code>
430430
<code><b>levenshtein(<i>&lt;from string&gt;</i> : string, <i>&lt;to string&gt;</i> : string) => integer</b></code><br/><br/>
431-
Gets the levenshtein distance between two strings
431+
Gets the levenshtein distance between two strings
432432
* ``levenshtein('boys', 'girls') -> 4``
433433
___
434434
### <code>like</code>
435435
<code><b>like(<i>&lt;string&gt;</i> : string, <i>&lt;pattern match&gt;</i> : string) => boolean</b></code><br/><br/>
436436
The pattern is a string that is matched literally. The exceptions are the following special symbols: _ matches any one character in the input (similar to . in posix regular expressions)
437437
% matches zero or more characters in the input (similar to .* in posix regular expressions).
438-
The escape character is ''. If an escape character precedes a special symbol or another escape character, the following character is matched literally. It is invalid to escape any other character.
438+
The escape character is ''. If an escape character precedes a special symbol or another escape character, the following character is matched literally. It is invalid to escape any other character.
439439
* ``like('icecream', 'ice%') -> true``
440440
___
441441
### <code>locate</code>
442442
<code><b>locate(<i>&lt;substring to find&gt;</i> : string, <i>&lt;string&gt;</i> : string, [<i>&lt;from index - 1-based&gt;</i> : integral]) => integer</b></code><br/><br/>
443-
Finds the position(1 based) of the substring within a string starting a certain position. If the position is omitted it is considered from the beginning of the string. 0 is returned if not found
443+
Finds the position(1 based) of the substring within a string starting a certain position. If the position is omitted it is considered from the beginning of the string. 0 is returned if not found
444444
* ``locate('mbo', 'dumbo') -> 3``
445445
* ``locate('o', 'microsoft', 6) -> 7``
446446
* ``locate('bad', 'good') -> 0``
447447
___
448448
### <code>log</code>
449449
<code><b>log(<i>&lt;value1&gt;</i> : number, [<i>&lt;value2&gt;</i> : number]) => double</b></code><br/><br/>
450-
Calculates log value. An optional base can be supplied else a Euler number if used
450+
Calculates log value. An optional base can be supplied else a Euler number if used
451451
* ``log(100, 10) -> 2``
452452
___
453453
### <code>log10</code>
454454
<code><b>log10(<i>&lt;value1&gt;</i> : number) => double</b></code><br/><br/>
455-
Calculates log value based on 10 base
455+
Calculates log value based on 10 base
456456
* ``log10(100) -> 2``
457457
___
458458
### <code>lower</code>
459459
<code><b>lower(<i>&lt;value1&gt;</i> : string) => string</b></code><br/><br/>
460-
Lowercases a string
460+
Lowercases a string
461461
* ``lower('GunChus') -> 'gunchus'``
462462
___
463463
### <code>lpad</code>
464464
<code><b>lpad(<i>&lt;string to pad&gt;</i> : string, <i>&lt;final padded length&gt;</i> : integral, <i>&lt;padding&gt;</i> : string) => string</b></code><br/><br/>
465-
Left pads the string by the supplied padding until it is of a certain length. If the string is equal to or greater than the length, then it is trimmed to the length
465+
Left pads the string by the supplied padding until it is of a certain length. If the string is equal to or greater than the length, then it is trimmed to the length
466466
* ``lpad('dumbo', 10, '-') -> '-----dumbo'``
467467
* ``lpad('dumbo', 4, '-') -> 'dumb'``
468468
* ``lpad('dumbo', 8, '<>') -> '<><dumbo'``
469469
___
470470
### <code>ltrim</code>
471471
<code><b>ltrim(<i>&lt;string to trim&gt;</i> : string, [<i>&lt;trim characters&gt;</i> : string]) => string</b></code><br/><br/>
472-
Left trims a string of leading characters. If second parameter is unspecified, it trims whitespace. Else it trims any character specified in the second parameter
472+
Left trims a string of leading characters. If second parameter is unspecified, it trims whitespace. Else it trims any character specified in the second parameter
473473
* ``ltrim(' dumbo ') -> 'dumbo '``
474474
* ``ltrim('!--!du!mbo!', '-!') -> 'du!mbo!'``
475475
___
476476
### <code>map</code>
477477
<code><b>map(<i>&lt;value1&gt;</i> : array, <i>&lt;value2&gt;</i> : unaryfunction) => any</b></code><br/><br/>
478-
Maps each element of the array to a new element using the provided expression. Map expects a reference to one element in the expression function as #item
478+
Maps each element of the array to a new element using the provided expression. Map expects a reference to one element in the expression function as #item
479479
* ``map([1, 2, 3, 4], #item + 2) -> [3, 4, 5, 6]``
480480
* ``map(['a', 'b', 'c', 'd'], #item + '_processed') -> ['a_processed', 'b_processed', 'c_processed', 'd_processed']``
481481
___
482482
### <code>mapIndex</code>
483483
<code><b>mapIndex(<i>&lt;value1&gt;</i> : array, <i>&lt;value2&gt;</i> : binaryfunction) => any</b></code><br/><br/>
484-
Maps each element of the array to a new element using the provided expression. Map expects a reference to one element in the expression function as #item and a reference to the element index as #index
484+
Maps each element of the array to a new element using the provided expression. Map expects a reference to one element in the expression function as #item and a reference to the element index as #index
485485
* ``mapIndex([1, 2, 3, 4], #item + 2 + #index) -> [4, 6, 8, 10]``
486486
___
487487
### <code>md5</code>
488488
<code><b>md5(<i>&lt;value1&gt;</i> : any, ...) => string</b></code><br/><br/>
489-
Calculates the MD5 digest of set of column of varying primitive datatypes and returns a 32 character hex string. It can be used to calculate a fingerprint for a row
489+
Calculates the MD5 digest of set of column of varying primitive datatypes and returns a 32 character hex string. It can be used to calculate a fingerprint for a row
490490
* ``md5(5, 'gunchus', 8.2, 'bojjus', true, toDate('2010-4-4')) -> '4ce8a880bd621a1ffad0bca905e1bc5a'``
491491
___
492492
### <code>millisecond</code>
493493
<code><b>millisecond(<i>&lt;value1&gt;</i> : timestamp, [<i>&lt;value2&gt;</i> : string]) => integer</b></code><br/><br/>
494-
Gets the millisecond value of a date. 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
494+
Gets the millisecond value of a date. 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
495495
* ``millisecond(toTimestamp('2009-07-30 12:58:59.871', 'yyyy-MM-dd HH:mm:ss.SSS')) -> 871``
496496
___
497497
### <code>milliseconds</code>
498498
<code><b>milliseconds(<i>&lt;value1&gt;</i> : integer) => long</b></code><br/><br/>
499-
Duration in milliseconds for number of milliseconds
499+
Duration in milliseconds for number of milliseconds
500500
* ``milliseconds(2) -> 2L``
501501
___
502502
### <code>minus</code>

0 commit comments

Comments
 (0)