Skip to content

Commit 4e025ad

Browse files
authored
Merge pull request #113195 from v-maudel/patch-491
C189395 Adding Hard Breaks before code
2 parents f3dc92e + b50ac4b commit 4e025ad

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

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

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ Duration in milliseconds for number of milliseconds
501501
___
502502
### <code>minus</code>
503503
<code><b>minus(<i>&lt;value1&gt;</i> : any, <i>&lt;value2&gt;</i> : any) => any</b></code><br/><br/>
504-
Subtracts numbers. Subtract from a date number of days. Subtract duration from a timestamp. Subtract two timestamps to get difference in milliseconds. Same as the - operator
504+
Subtracts numbers. Subtract from a date number of days. Subtract duration from a timestamp. Subtract two timestamps to get difference in milliseconds. Same as the - operator
505505
* ``minus(20, 10) -> 10``
506506
* ``20 - 10 -> 10``
507507
* ``minus(toDate('2012-12-15'), 3) -> toDate('2012-12-12')``
@@ -511,73 +511,73 @@ Subtracts numbers. Subtract from a date number of days. Subtract duration from a
511511
___
512512
### <code>minute</code>
513513
<code><b>minute(<i>&lt;value1&gt;</i> : timestamp, [<i>&lt;value2&gt;</i> : string]) => integer</b></code><br/><br/>
514-
Gets the minute 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
514+
Gets the minute 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
515515
* ``minute(toTimestamp('2009-07-30 12:58:59')) -> 58``
516516
* ``minute(toTimestamp('2009-07-30 12:58:59'), 'PST') -> 58``
517517
___
518518
### <code>minutes</code>
519519
<code><b>minutes(<i>&lt;value1&gt;</i> : integer) => long</b></code><br/><br/>
520-
Duration in milliseconds for number of minutes
520+
Duration in milliseconds for number of minutes
521521
* ``minutes(2) -> 120000L``
522522
___
523523
### <code>mod</code>
524524
<code><b>mod(<i>&lt;value1&gt;</i> : any, <i>&lt;value2&gt;</i> : any) => any</b></code><br/><br/>
525-
Modulus of pair of numbers. Same as the % operator
525+
Modulus of pair of numbers. Same as the % operator
526526
* ``mod(20, 8) -> 4``
527527
* ``20 % 8 -> 4``
528528
___
529529
### <code>month</code>
530530
<code><b>month(<i>&lt;value1&gt;</i> : datetime) => integer</b></code><br/><br/>
531-
Gets the month value of a date or timestamp
531+
Gets the month value of a date or timestamp
532532
* ``month(toDate('2012-8-8')) -> 8``
533533
___
534534
### <code>monthsBetween</code>
535535
<code><b>monthsBetween(<i>&lt;from date/timestamp&gt;</i> : datetime, <i>&lt;to date/timestamp&gt;</i> : datetime, [<i>&lt;roundoff&gt;</i> : boolean], [<i>&lt;time zone&gt;</i> : string]) => double</b></code><br/><br/>
536-
Gets the number of months between two dates. You can round off the calculation.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
536+
Gets the number of months between two dates. You can round off the calculation.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
537537
* ``monthsBetween(toTimestamp('1997-02-28 10:30:00'), toDate('1996-10-30')) -> 3.94959677``
538538
___
539539
### <code>multiply</code>
540540
<code><b>multiply(<i>&lt;value1&gt;</i> : any, <i>&lt;value2&gt;</i> : any) => any</b></code><br/><br/>
541-
Multiplies pair of numbers. Same as the * operator
541+
Multiplies pair of numbers. Same as the * operator
542542
* ``multiply(20, 10) -> 200``
543543
* ``20 * 10 -> 200``
544544
___
545545
### <code>negate</code>
546546
<code><b>negate(<i>&lt;value1&gt;</i> : number) => number</b></code><br/><br/>
547-
Negates a number. Turns positive numbers to negative and vice versa
547+
Negates a number. Turns positive numbers to negative and vice versa
548548
* ``negate(13) -> -13``
549549
___
550550
### <code>nextSequence</code>
551551
<code><b>nextSequence() => long</b></code><br/><br/>
552-
Returns the next unique sequence. The number is consecutive only within a partition and is prefixed by the partitionId
552+
Returns the next unique sequence. The number is consecutive only within a partition and is prefixed by the partitionId
553553
* ``nextSequence() == 12313112 -> false``
554554
___
555555
### <code>normalize</code>
556556
<code><b>normalize(<i>&lt;String to normalize&gt;</i> : string) => string</b></code><br/><br/>
557-
Normalize the string value to separate accented unicode characters
557+
Normalize the string value to separate accented unicode characters
558558
* ``regexReplace(normalize('bo²s'), `\p{M}`, '') -> 'boys'``
559559
___
560560
### <code>not</code>
561561
<code><b>not(<i>&lt;value1&gt;</i> : boolean) => boolean</b></code><br/><br/>
562-
Logical negation operator
562+
Logical negation operator
563563
* ``not(true) -> false``
564564
* ``not(10 == 20) -> true``
565565
___
566566
### <code>notEquals</code>
567567
<code><b>notEquals(<i>&lt;value1&gt;</i> : any, <i>&lt;value2&gt;</i> : any) => boolean</b></code><br/><br/>
568-
Comparison not equals operator. Same as != operator
568+
Comparison not equals operator. Same as != operator
569569
* ``12 != 24 -> true``
570570
* ``'bojjus' != 'bo' + 'jjus' -> false``
571571
___
572572
### <code>notNull</code>
573573
<code><b>notNull(<i>&lt;value1&gt;</i> : any) => boolean</b></code><br/><br/>
574-
Checks if the value is not NULL
574+
Checks if the value is not NULL
575575
* ``notNull(NULL()) -> false``
576576
* ``notNull('') -> true``
577577
___
578578
### <code>null</code>
579579
<code><b>null() => null</b></code><br/><br/>
580-
Returns a NULL value. Use the function syntax(null()) if there is a column named 'null'. Any operation that uses will result in a NULL
580+
Returns a NULL value. Use the function syntax(null()) if there is a column named 'null'. Any operation that uses will result in a NULL
581581
* ``isNull('dumbo' + null) -> true``
582582
* ``isNull(10 * null) -> true``
583583
* ``isNull('') -> false``
@@ -586,77 +586,77 @@ Returns a NULL value. Use the function syntax(null()) if there is a column named
586586
___
587587
### <code>or</code>
588588
<code><b>or(<i>&lt;value1&gt;</i> : boolean, <i>&lt;value2&gt;</i> : boolean) => boolean</b></code><br/><br/>
589-
Logical OR operator. Same as ||
589+
Logical OR operator. Same as ||
590590
* ``or(true, false) -> true``
591591
* ``true || false -> true``
592592
___
593593
### <code>pMod</code>
594594
<code><b>pMod(<i>&lt;value1&gt;</i> : any, <i>&lt;value2&gt;</i> : any) => any</b></code><br/><br/>
595-
Positive Modulus of pair of numbers.
595+
Positive Modulus of pair of numbers.
596596
* ``pmod(-20, 8) -> 4``
597597
___
598598
### <code>partitionId</code>
599599
<code><b>partitionId() => integer</b></code><br/><br/>
600-
Returns the current partition id the input row is in
600+
Returns the current partition id the input row is in
601601
* ``partitionId()``
602602
___
603603
### <code>power</code>
604604
<code><b>power(<i>&lt;value1&gt;</i> : number, <i>&lt;value2&gt;</i> : number) => double</b></code><br/><br/>
605-
Raises one number to the power of another
605+
Raises one number to the power of another
606606
* ``power(10, 2) -> 100``
607607
___
608608
### <code>reduce</code>
609609
<code><b>reduce(<i>&lt;value1&gt;</i> : array, <i>&lt;value2&gt;</i> : any, <i>&lt;value3&gt;</i> : binaryfunction, <i>&lt;value4&gt;</i> : unaryfunction) => any</b></code><br/><br/>
610-
Accumulates elements in an array. Reduce expects a reference to an accumulator and one element in the first expression function as #acc and #item and it expects the resulting value as #result to be used in the second expression function
610+
Accumulates elements in an array. Reduce expects a reference to an accumulator and one element in the first expression function as #acc and #item and it expects the resulting value as #result to be used in the second expression function
611611
* ``toString(reduce(['1', '2', '3', '4'], '0', #acc + #item, #result)) -> '01234'``
612612
___
613613
### <code>regexExtract</code>
614614
<code><b>regexExtract(<i>&lt;string&gt;</i> : string, <i>&lt;regex to find&gt;</i> : string, [<i>&lt;match group 1-based index&gt;</i> : integral]) => string</b></code><br/><br/>
615-
Extract a matching substring for a given regex pattern. The last parameter identifies the match group and is defaulted to 1 if omitted. Use `<regex>`(back quote) to match a string without escaping
615+
Extract a matching substring for a given regex pattern. The last parameter identifies the match group and is defaulted to 1 if omitted. Use `<regex>`(back quote) to match a string without escaping
616616
* ``regexExtract('Cost is between 600 and 800 dollars', '(\\d+) and (\\d+)', 2) -> '800'``
617617
* ``regexExtract('Cost is between 600 and 800 dollars', `(\d+) and (\d+)`, 2) -> '800'``
618618
___
619619
### <code>regexMatch</code>
620620
<code><b>regexMatch(<i>&lt;string&gt;</i> : string, <i>&lt;regex to match&gt;</i> : string) => boolean</b></code><br/><br/>
621-
Checks if the string matches the given regex pattern. Use `<regex>`(back quote) to match a string without escaping
621+
Checks if the string matches the given regex pattern. Use `<regex>`(back quote) to match a string without escaping
622622
* ``regexMatch('200.50', '(\\d+).(\\d+)') -> true``
623623
* ``regexMatch('200.50', `(\d+).(\d+)`) -> true``
624624
___
625625
### <code>regexReplace</code>
626626
<code><b>regexReplace(<i>&lt;string&gt;</i> : string, <i>&lt;regex to find&gt;</i> : string, <i>&lt;substring to replace&gt;</i> : string) => string</b></code><br/><br/>
627-
Replace all occurrences of a regex pattern with another substring in the given string Use `<regex>`(back quote) to match a string without escaping
627+
Replace all occurrences of a regex pattern with another substring in the given string Use `<regex>`(back quote) to match a string without escaping
628628
* ``regexReplace('100 and 200', '(\\d+)', 'bojjus') -> 'bojjus and bojjus'``
629629
* ``regexReplace('100 and 200', `(\d+)`, 'gunchus') -> 'gunchus and gunchus'``
630630
___
631631
### <code>regexSplit</code>
632632
<code><b>regexSplit(<i>&lt;string to split&gt;</i> : string, <i>&lt;regex expression&gt;</i> : string) => array</b></code><br/><br/>
633-
Splits a string based on a delimiter based on regex and returns an array of strings
633+
Splits a string based on a delimiter based on regex and returns an array of strings
634634
* ``regexSplit('bojjusAgunchusBdumbo', `[CAB]`) -> ['bojjus', 'gunchus', 'dumbo']``
635635
* ``regexSplit('bojjusAgunchusBdumboC', `[CAB]`) -> ['bojjus', 'gunchus', 'dumbo', '']``
636636
* ``(regexSplit('bojjusAgunchusBdumboC', `[CAB]`)[1]) -> 'bojjus'``
637637
* ``isNull(regexSplit('bojjusAgunchusBdumboC', `[CAB]`)[20]) -> true``
638638
___
639639
### <code>replace</code>
640640
<code><b>replace(<i>&lt;string&gt;</i> : string, <i>&lt;substring to find&gt;</i> : string, [<i>&lt;substring to replace&gt;</i> : string]) => string</b></code><br/><br/>
641-
Replace all occurrences of a substring with another substring in the given string. If the last parameter is omitted, it is default to empty string
641+
Replace all occurrences of a substring with another substring in the given string. If the last parameter is omitted, it is default to empty string
642642
* ``replace('doggie dog', 'dog', 'cat') -> 'catgie cat'``
643643
* ``replace('doggie dog', 'dog', '') -> 'gie '``
644644
* ``replace('doggie dog', 'dog') -> 'gie '``
645645
___
646646
### <code>reverse</code>
647647
<code><b>reverse(<i>&lt;value1&gt;</i> : string) => string</b></code><br/><br/>
648-
Reverses a string
648+
Reverses a string
649649
* ``reverse('gunchus') -> 'suhcnug'``
650650
___
651651
### <code>right</code>
652652
<code><b>right(<i>&lt;string to subset&gt;</i> : string, <i>&lt;number of characters&gt;</i> : integral) => string</b></code><br/><br/>
653-
Extracts a substring with number of characters from the right. Same as SUBSTRING(str, LENGTH(str) - n, n)
653+
Extracts a substring with number of characters from the right. Same as SUBSTRING(str, LENGTH(str) - n, n)
654654
* ``right('bojjus', 2) -> 'us'``
655655
* ``right('bojjus', 20) -> 'bojjus'``
656656
___
657657
### <code>rlike</code>
658658
<code><b>rlike(<i>&lt;string&gt;</i> : string, <i>&lt;pattern match&gt;</i> : string) => boolean</b></code><br/><br/>
659-
Checks if the string matches the given regex pattern
659+
Checks if the string matches the given regex pattern
660660
* ``rlike('200.50', `(\d+).(\d+)`) -> true``
661661
* ``rlike('bogus', `M[0-9]+.*`) -> false``
662662
___
@@ -670,57 +670,57 @@ Rounds a number given an optional scale and an optional rounding mode. If the sc
670670
5 - ROUND_HALF_UP
671671
6 - ROUND_HALF_DOWN
672672
7 - ROUND_HALF_EVEN
673-
8 - ROUND_UNNECESSARY
673+
8 - ROUND_UNNECESSARY
674674
* ``round(100.123) -> 100.0``
675675
* ``round(2.5, 0) -> 3.0``
676676
* ``round(5.3999999999999995, 2, 7) -> 5.40``
677677
___
678678
### <code>rpad</code>
679679
<code><b>rpad(<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/>
680-
Right 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
680+
Right 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
681681
* ``rpad('dumbo', 10, '-') -> 'dumbo-----'``
682682
* ``rpad('dumbo', 4, '-') -> 'dumb'``
683683
* ``rpad('dumbo', 8, '<>') -> 'dumbo<><'``
684684
___
685685
### <code>rtrim</code>
686686
<code><b>rtrim(<i>&lt;string to trim&gt;</i> : string, [<i>&lt;trim characters&gt;</i> : string]) => string</b></code><br/><br/>
687-
Right trims a string of leading characters. If second parameter is unspecified, it trims whitespace. Else it trims any character specified in the second parameter
687+
Right trims a string of leading characters. If second parameter is unspecified, it trims whitespace. Else it trims any character specified in the second parameter
688688
* ``rtrim(' dumbo ') -> ' dumbo'``
689689
* ``rtrim('!--!du!mbo!', '-!') -> '!--!du!mbo'``
690690
___
691691
### <code>second</code>
692692
<code><b>second(<i>&lt;value1&gt;</i> : timestamp, [<i>&lt;value2&gt;</i> : string]) => integer</b></code><br/><br/>
693-
Gets the second 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
693+
Gets the second 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
694694
* ``second(toTimestamp('2009-07-30 12:58:59')) -> 59``
695695
___
696696
### <code>seconds</code>
697697
<code><b>seconds(<i>&lt;value1&gt;</i> : integer) => long</b></code><br/><br/>
698-
Duration in milliseconds for number of seconds
698+
Duration in milliseconds for number of seconds
699699
* ``seconds(2) -> 2000L``
700700
___
701701
### <code>sha1</code>
702702
<code><b>sha1(<i>&lt;value1&gt;</i> : any, ...) => string</b></code><br/><br/>
703-
Calculates the SHA-1 digest of set of column of varying primitive datatypes and returns a 40 character hex string. It can be used to calculate a fingerprint for a row
703+
Calculates the SHA-1 digest of set of column of varying primitive datatypes and returns a 40 character hex string. It can be used to calculate a fingerprint for a row
704704
* ``sha1(5, 'gunchus', 8.2, 'bojjus', true, toDate('2010-4-4')) -> '46d3b478e8ec4e1f3b453ac3d8e59d5854e282bb'``
705705
___
706706
### <code>sha2</code>
707707
<code><b>sha2(<i>&lt;value1&gt;</i> : integer, <i>&lt;value2&gt;</i> : any, ...) => string</b></code><br/><br/>
708-
Calculates the SHA-2 digest 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
708+
Calculates the SHA-2 digest 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
709709
* ``sha2(256, 'gunchus', 8.2, 'bojjus', true, toDate('2010-4-4')) -> 'afe8a553b1761c67d76f8c31ceef7f71b66a1ee6f4e6d3b5478bf68b47d06bd3'``
710710
___
711711
### <code>sin</code>
712712
<code><b>sin(<i>&lt;value1&gt;</i> : number) => double</b></code><br/><br/>
713-
Calculates a sine value
713+
Calculates a sine value
714714
* ``sin(2) -> 0.9092974268256817``
715715
___
716716
### <code>sinh</code>
717717
<code><b>sinh(<i>&lt;value1&gt;</i> : number) => double</b></code><br/><br/>
718-
Calculates a hyperbolic sine value
718+
Calculates a hyperbolic sine value
719719
* ``sinh(0) -> 0.0``
720720
___
721721
### <code>slice</code>
722722
<code><b>slice(<i>&lt;array to slice&gt;</i> : array, <i>&lt;from 1-based index&gt;</i> : integral, [<i>&lt;number of items&gt;</i> : integral]) => array</b></code><br/><br/>
723-
Extracts a subset of an array from a position. Position is 1 based. If the length is omitted, it is defaulted to end of the string
723+
Extracts a subset of an array from a position. Position is 1 based. If the length is omitted, it is defaulted to end of the string
724724
* ``slice([10, 20, 30, 40], 1, 2) -> [10, 20]``
725725
* ``slice([10, 20, 30, 40], 2) -> [20, 30, 40]``
726726
* ``slice([10, 20, 30, 40], 2)[1] -> 20``

0 commit comments

Comments
 (0)